public interface BundleDependency extends Dependency, ComponentDependencyDeclaration
STATE_AVAILABLE_OPTIONAL, STATE_AVAILABLE_REQUIRED, STATE_NAMES, STATE_OPTIONAL, STATE_REQUIRED, STATE_UNAVAILABLE_OPTIONAL, STATE_UNAVAILABLE_REQUIRED| Modifier and Type | Method and Description |
|---|---|
BundleDependency |
setAutoConfig(boolean autoConfig)
Enables auto configuration for this dependency.
|
BundleDependency |
setBundle(Bundle bundle)
Sets the bundle to depend on directly.
|
BundleDependency |
setCallbacks(java.lang.Object instance,
java.lang.String added,
java.lang.String removed)
Sets the callbacks for this dependency.
|
BundleDependency |
setCallbacks(java.lang.Object instance,
java.lang.String added,
java.lang.String changed,
java.lang.String removed)
Sets the callbacks for this dependency.
|
BundleDependency |
setCallbacks(java.lang.String added,
java.lang.String removed)
Sets the callbacks for this dependency.
|
BundleDependency |
setCallbacks(java.lang.String added,
java.lang.String changed,
java.lang.String removed)
Sets the callbacks for this dependency.
|
BundleDependency |
setFilter(java.lang.String filter)
Sets the filter condition to depend on.
|
BundleDependency |
setPropagate(boolean propagate)
Sets property propagation.
|
BundleDependency |
setPropagate(java.lang.Object instance,
java.lang.String method)
Sets an Object instance and a callback method used to propagate some properties to the provided service properties.
|
BundleDependency |
setRequired(boolean required)
Sets the dependency to be required.
|
BundleDependency |
setStateMask(int mask)
Sets the bundle state mask to depend on.
|
getAutoConfigName, getProperties, isAutoConfig, isAvailable, isPropagated, isRequired, overrideServicePropertiesgetFilter, getName, getSimpleName, getState, getTypeBundleDependency setCallbacks(java.lang.String added, java.lang.String removed)
added - the method to call when a bundle was addedremoved - the method to call when a bundle was removedBundleDependency setCallbacks(java.lang.String added, java.lang.String changed, java.lang.String removed)
added - the method to call when a bundle was addedchanged - the method to call when a bundle was changedremoved - the method to call when a bundle was removedBundleDependency setCallbacks(java.lang.Object instance, java.lang.String added, java.lang.String removed)
instance - the instance to call the callbacks onadded - the method to call when a bundle was addedremoved - the method to call when a bundle was removedBundleDependency setCallbacks(java.lang.Object instance, java.lang.String added, java.lang.String changed, java.lang.String removed)
instance - the instance to call the callbacks onadded - the method to call when a bundle was addedchanged - the method to call when a bundle was changedremoved - the method to call when a bundle was removedBundleDependency setAutoConfig(boolean autoConfig)
autoConfig - true to enable auto configurationBundleDependency setRequired(boolean required)
required - true if this bundle dependency is requiredBundleDependency setBundle(Bundle bundle)
bundle - the bundle to depend onBundleDependency setFilter(java.lang.String filter) throws java.lang.IllegalArgumentException
filter - the filter conditionjava.lang.IllegalArgumentException - if the filter is invalidBundleDependency setStateMask(int mask)
mask - the mask to useBundleDependency setPropagate(boolean propagate)
true any bundle manifest properties will be added
to the service properties of the component that has this dependency (if it registers as a service).
The provided service properties take precedence over the propagated bundle manifest headers.
It means a bundle manifest header won't override a component service property having the same name.propagate - true to propagate the bundle manifest propertiesBundleDependency setPropagate(java.lang.Object instance, java.lang.String method)
instance - the Object instance which is used to retrieve propagated service propertiesmethod - the method to invoke for retrieving the properties to be propagated to the service properties.