commit | 4973a4ba3e8f661548b285632aac2d251821f27e | [log] [tgz] |
---|---|---|
author | Pierre De Rop <pderop@apache.org> | Fri Feb 05 06:41:03 2016 +0000 |
committer | Pierre De Rop <pderop@apache.org> | Fri Feb 05 06:41:03 2016 +0000 |
tree | 44c9d41ceeea99c8679806d7d9203c0479d9e6e8 | |
parent | 38626d35b920f82f99f9fafab667856d93ad8c09 [diff] |
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;