commit | 8f0d45c4a51c1135b4cf3f36539a2137e9a251e1 | [log] [tgz] |
---|---|---|
author | Pierre De Rop <pderop@apache.org> | Thu Apr 22 11:11:45 2010 +0000 |
committer | Pierre De Rop <pderop@apache.org> | Thu Apr 22 11:11:45 2010 +0000 |
tree | 3edd28caa999128957dd5f81e7966b0bd72eea95 | |
parent | 3bf06e047e9852d394cb9a156d6c93d224b26915 [diff] |
Added javadoc. Added missing method "isAutoConfig()". git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@936781 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/dependencymanager/compat/src/main/java/org/apache/felix/dependencymanager/ServiceDependency.java b/dependencymanager/compat/src/main/java/org/apache/felix/dependencymanager/ServiceDependency.java index a3837b9..aebf1bc 100644 --- a/dependencymanager/compat/src/main/java/org/apache/felix/dependencymanager/ServiceDependency.java +++ b/dependencymanager/compat/src/main/java/org/apache/felix/dependencymanager/ServiceDependency.java
@@ -167,7 +167,28 @@ public abstract ServiceDependency setCallbacks(Object instance, String added, String changed, String removed); + /** + * Returns <code>true>code> if auto configuration is enabled for this dependency. + * Auto configuration means that a dependency is injected in the service instance + * when it's available, and if it's unavailable, a "null object" will be inserted + * instead. + * + * @return <code>true>code> if auto configuration is enabled for this dependency + */ + public abstract boolean isAutoConfig(); + + /** + * Returns <code>true</code> if the dependency is available. + * + * @return <code>true</code> if the dependency is available + */ public abstract boolean isAvailable(); + /** + * Returns <code>true</code> if this a required dependency. Required dependencies + * are dependencies that must be available before the service can be activated. + * + * @return <code>true</code> if the dependency is required + */ public abstract boolean isRequired(); }
diff --git a/dependencymanager/compat/src/main/java/org/apache/felix/dependencymanager/impl/ServiceDependencyImpl.java b/dependencymanager/compat/src/main/java/org/apache/felix/dependencymanager/impl/ServiceDependencyImpl.java index c5f0de3..351159a 100644 --- a/dependencymanager/compat/src/main/java/org/apache/felix/dependencymanager/impl/ServiceDependencyImpl.java +++ b/dependencymanager/compat/src/main/java/org/apache/felix/dependencymanager/impl/ServiceDependencyImpl.java
@@ -86,6 +86,11 @@ return this; } + public boolean isAutoConfig() + { + return m_delegate.isAutoConfig(); + } + public boolean isAvailable() { return m_delegate.isAvailable();