felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clem...@apache.org
Subject svn commit: r1558757 - /felix/trunk/ipojo/webconsole-plugin/src/main/java/org/apache/felix/ipojo/webconsole/IPOJOPlugin.java
Date Thu, 16 Jan 2014 11:13:27 GMT
Author: clement
Date: Thu Jan 16 11:13:26 2014
New Revision: 1558757

URL: http://svn.apache.org/r1558757
Log:
Use classes instead of String in the @Requires annotation

Modified:
    felix/trunk/ipojo/webconsole-plugin/src/main/java/org/apache/felix/ipojo/webconsole/IPOJOPlugin.java

Modified: felix/trunk/ipojo/webconsole-plugin/src/main/java/org/apache/felix/ipojo/webconsole/IPOJOPlugin.java
URL: http://svn.apache.org/viewvc/felix/trunk/ipojo/webconsole-plugin/src/main/java/org/apache/felix/ipojo/webconsole/IPOJOPlugin.java?rev=1558757&r1=1558756&r2=1558757&view=diff
==============================================================================
--- felix/trunk/ipojo/webconsole-plugin/src/main/java/org/apache/felix/ipojo/webconsole/IPOJOPlugin.java
(original)
+++ felix/trunk/ipojo/webconsole-plugin/src/main/java/org/apache/felix/ipojo/webconsole/IPOJOPlugin.java
Thu Jan 16 11:13:26 2014
@@ -117,19 +117,19 @@ public class IPOJOPlugin extends Abstrac
     /**
      * List of available Architecture service.
      */
-    @Requires(optional = true, specification = "org.apache.felix.ipojo.architecture.Architecture")
+    @Requires(optional = true, specification = Architecture.class)
     private List<Architecture> m_archs;
 
     /**
      * List of available Factories.
      */
-    @Requires(optional = true, specification = "org.apache.felix.ipojo.Factory")
+    @Requires(optional = true, specification = Factory.class)
     private List<Factory> m_factories;
 
     /**
      * List of available Handler Factories.
      */
-    @Requires(optional = true, specification = "org.apache.felix.ipojo.HandlerFactory")
+    @Requires(optional = true, specification = HandlerFactory.class)
     private List<HandlerFactory> m_handlers;
     
     /**
@@ -149,7 +149,7 @@ public class IPOJOPlugin extends Abstrac
      * @param templateFile the template file name
      * @return the template
      */
-    private final String readTemplate(final String templateFile) {
+    private String readTemplate(final String templateFile) {
         InputStream templateStream = getClass().getResourceAsStream(
                 templateFile);
         if (templateStream != null) {



Mime
View raw message