FELIX-4305: Fixed some javadocs. Added autoConfig(final Dependency dependency), propagate(final Dependency dependency) methods.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1551344 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/dependencymanager/core/src/main/java/org/apache/felix/dm/DependencyService.java b/dependencymanager/core/src/main/java/org/apache/felix/dm/DependencyService.java
index 182993d..6fe87d8 100644
--- a/dependencymanager/core/src/main/java/org/apache/felix/dm/DependencyService.java
+++ b/dependencymanager/core/src/main/java/org/apache/felix/dm/DependencyService.java
@@ -34,14 +34,14 @@
public void dependencyAvailable(Dependency dependency);
/**
- * Will be called when the dependency changes.
+ * Will be called when the dependency becomes unavailable .
*
* @param dependency the dependency
*/
public void dependencyUnavailable(Dependency dependency);
/**
- * Will be called when the dependency becomes unavailable.
+ * Will be called when the dependency changes.
*
* @param dependency the dependency
*/
@@ -93,4 +93,21 @@
* @return the component interface
*/
public Component getServiceInterface();
+
+ /**
+ * Injects the dependency into autoconfig class field (if any) of the dependency service.
+ * @param dependency
+ */
+ public void autoConfig(final Dependency dependency);
+
+ /**
+ * Propagates the dependency properties to the ones provided by the dependency service.
+ * No effet if the dependency is not configured with the setPropagate method.
+ *
+ * @param dependency the dependency whose properties will be propagated to the service properties of this dependency service.
+ *
+ * @see ServiceDependency#setPropagate(boolean)
+ * @see ServiceDependency#setPropagate(String)
+ */
+ public void propagate(final Dependency dependency);
}