felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pde...@apache.org
Subject svn commit: r1550885 - /felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/ComponentDeclaration.java
Date Sat, 14 Dec 2013 07:01:17 GMT
Author: pderop
Date: Sat Dec 14 07:01:16 2013
New Revision: 1550885

URL: http://svn.apache.org/r1550885
Log:
FELIX-4294: Added getClassName,getServices,getServiceProperties,getId methods

Modified:
    felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/ComponentDeclaration.java

Modified: felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/ComponentDeclaration.java
URL: http://svn.apache.org/viewvc/felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/ComponentDeclaration.java?rev=1550885&r1=1550884&r2=1550885&view=diff
==============================================================================
--- felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/ComponentDeclaration.java
(original)
+++ felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/ComponentDeclaration.java
Sat Dec 14 07:01:16 2013
@@ -18,6 +18,8 @@
  */
 package org.apache.felix.dm;
 
+import java.util.Dictionary;
+
 import org.osgi.framework.BundleContext;
 
 /**
@@ -37,10 +39,18 @@ public interface ComponentDeclaration {
     public static final int STATE_REGISTERED = 1;
     /** Returns a list of dependencies associated with this component. */
     public ComponentDependencyDeclaration[] getComponentDependencies();
-    /** Returns the name of this component. */
+    /** Returns the description of this component (the classname or the provided service(s))
*/
     public String getName();
+    /** Returns the class name of the Component implementation. */
+    public String getClassName();
+    /** Returns the service optionally provided by this component, or null */
+    public String[] getServices();
+    /** Returns the service properties, or null */
+    public Dictionary getServiceProperties();     
     /** Returns the state of this component. */
     public int getState();
+    /** Returns the instance id of this component. */
+    public long getId();
     /** Returns the bundle context associated with this component. */
     public BundleContext getBundleContext();
 }



Mime
View raw message