FELIX-5177: Added some comments about the ConfigurationDependencyImpl.needsInstance method.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1728609 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/dependencymanager/org.apache.felix.dependencymanager/src/org/apache/felix/dm/impl/ConfigurationDependencyImpl.java b/dependencymanager/org.apache.felix.dependencymanager/src/org/apache/felix/dm/impl/ConfigurationDependencyImpl.java
index bf03b8a..3288216 100644
--- a/dependencymanager/org.apache.felix.dependencymanager/src/org/apache/felix/dm/impl/ConfigurationDependencyImpl.java
+++ b/dependencymanager/org.apache.felix.dependencymanager/src/org/apache/felix/dm/impl/ConfigurationDependencyImpl.java
@@ -150,6 +150,13 @@
         return this;
     }
     
+    /**
+     * This method indicates to ComponentImpl if the component must be instantiated when this Dependency is started.
+     * If the callback has to be invoked on the component instance, then the component
+     * instance must be instantiated at the time the Dependency is started because when "CM" calls ConfigurationDependencyImpl.updated()
+     * callback, then at this point we have to synchronously delegate the callback to the component instance, and re-throw to CM
+     * any exceptions (if any) thrown by the component instance updated callback.
+     */
     @Override
     public boolean needsInstance() {
         return m_needsInstance;