Author: pderop
Date: Fri Feb 5 06:41:03 2016
New Revision: 1728609
URL: http://svn.apache.org/viewvc?rev=1728609&view=rev
Log:
FELIX-5177: Added some comments about the
ConfigurationDependencyImpl.needsInstance method.
Modified:
felix/trunk/dependencymanager/org.apache.felix.dependencymanager/src/org/apache/felix/dm/impl/ConfigurationDependencyImpl.java
Modified:
felix/trunk/dependencymanager/org.apache.felix.dependencymanager/src/org/apache/felix/dm/impl/ConfigurationDependencyImpl.java
URL:
http://svn.apache.org/viewvc/felix/trunk/dependencymanager/org.apache.felix.dependencymanager/src/org/apache/felix/dm/impl/ConfigurationDependencyImpl.java?rev=1728609&r1=1728608&r2=1728609&view=diff
==============================================================================
---
felix/trunk/dependencymanager/org.apache.felix.dependencymanager/src/org/apache/felix/dm/impl/ConfigurationDependencyImpl.java
(original)
+++
felix/trunk/dependencymanager/org.apache.felix.dependencymanager/src/org/apache/felix/dm/impl/ConfigurationDependencyImpl.java
Fri Feb 5 06:41:03 2016
@@ -150,6 +150,13 @@ public class ConfigurationDependencyImpl
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;