public interface Dependency
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAutoConfigName()
Returns the name of the member in the class of the component instance
to inject into.
|
<K,V> java.util.Dictionary<K,V> |
getProperties()
Returns the properties associated with this dependency.
|
boolean |
isAutoConfig()
Returns
true if auto configuration is enabled for this dependency. |
boolean |
isAvailable()
Returns
true if the dependency is available. |
boolean |
isPropagated()
Determines if the properties associated with this dependency should be propagated to
the properties of the service registered by the component they belong to.
|
boolean |
isRequired()
Returns
true if this a required dependency. |
default boolean |
overrideServiceProperties()
Determines if the propagated dependency properties must override the component service properties.
|
boolean isRequired()
true
if this a required dependency. Required dependencies
are dependencies that must be available before the component can be activated.true
if the dependency is requiredboolean isAvailable()
true
if the dependency is available.true
if the dependency is availableboolean isAutoConfig()
true
if auto configuration is enabled for this dependency.
Auto configuration means that a dependency is injected in the component instance
when it's available, and if it's unavailable, a "null object" will be inserted
instead.java.lang.String getAutoConfigName()
boolean isPropagated()
true
if the properties should be propagatedgetProperties()
default boolean overrideServiceProperties()
<K,V> java.util.Dictionary<K,V> getProperties()
isPropagated()