felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pde...@apache.org
Subject svn commit: r953666 - /felix/trunk/dependencymanager/annotation/src/main/java/org/apache/felix/dm/annotation/api/ServiceDependency.java
Date Fri, 11 Jun 2010 11:32:41 GMT
Author: pderop
Date: Fri Jun 11 11:32:41 2010
New Revision: 953666

URL: http://svn.apache.org/viewvc?rev=953666&view=rev
Log:
fixed javadoc

Modified:
    felix/trunk/dependencymanager/annotation/src/main/java/org/apache/felix/dm/annotation/api/ServiceDependency.java

Modified: felix/trunk/dependencymanager/annotation/src/main/java/org/apache/felix/dm/annotation/api/ServiceDependency.java
URL: http://svn.apache.org/viewvc/felix/trunk/dependencymanager/annotation/src/main/java/org/apache/felix/dm/annotation/api/ServiceDependency.java?rev=953666&r1=953665&r2=953666&view=diff
==============================================================================
--- felix/trunk/dependencymanager/annotation/src/main/java/org/apache/felix/dm/annotation/api/ServiceDependency.java
(original)
+++ felix/trunk/dependencymanager/annotation/src/main/java/org/apache/felix/dm/annotation/api/ServiceDependency.java
Fri Jun 11 11:32:41 2010
@@ -106,10 +106,14 @@ public @interface ServiceDependency
     long timeout() default -1;
     
     /**
-     * Sets the dependency name. This attribute is only meaningful when dynamically configuring
the dependency 
+     * The name used when dynamically configuring this dependency from the init method.
+     * Specifying this attribute allows to dynamically configure the dependency 
      * <code>filter</code> and <code>required</code> flag from the
Service's init method.
+     * All unamed dependencies will be injected before the init() method; so from the init()
method, you can
+     * then pick up whatever information needed from already injected (unamed) dependencies,
and configure dynamically
+     * your named dependencies, which will then be calculated once the init() method returns.
      * 
-     * Usage Example of a Service whose dependency filter is configured from ConfigAdmin:
+     * <p> Usage example of a Service whose dependency filter is configured from ConfigAdmin:
      * 
      * <blockquote><pre>
      *  &#47;**



Mime
View raw message