|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BundleDependency
Field Summary |
---|
Fields inherited from interface org.apache.felix.dm.ComponentDependencyDeclaration |
---|
STATE_AVAILABLE_OPTIONAL, STATE_AVAILABLE_REQUIRED, STATE_NAMES, STATE_UNAVAILABLE_OPTIONAL, STATE_UNAVAILABLE_REQUIRED |
Method Summary | |
---|---|
BundleDependency |
setAutoConfig(boolean autoConfig)
Enables auto configuration for this dependency. |
BundleDependency |
setBundle(Bundle bundle)
Sets the bundle to depend on directly. |
BundleDependency |
setCallbacks(Object instance,
String added,
String removed)
Sets the callbacks for this dependency. |
BundleDependency |
setCallbacks(Object instance,
String added,
String changed,
String removed)
Sets the callbacks for this dependency. |
BundleDependency |
setCallbacks(String added,
String removed)
Sets the callbacks for this dependency. |
BundleDependency |
setCallbacks(String added,
String changed,
String removed)
Sets the callbacks for this dependency. |
BundleDependency |
setFilter(String filter)
Sets the filter condition to depend on. |
BundleDependency |
setInstanceBound(boolean isInstanceBound)
Sets the dependency to be bound to this instance. |
BundleDependency |
setPropagate(boolean propagate)
Sets property propagation. |
BundleDependency |
setRequired(boolean required)
Sets the dependency to be required. |
BundleDependency |
setStateMask(int mask)
Sets the bundle state mask to depend on. |
Methods inherited from interface org.apache.felix.dm.Dependency |
---|
createCopy, getAutoConfigInstance, getAutoConfigName, getAutoConfigType, getProperties, invokeAdded, invokeRemoved, isAutoConfig, isAvailable, isInstanceBound, isPropagated, isRequired |
Methods inherited from interface org.apache.felix.dm.ComponentDependencyDeclaration |
---|
getName, getState, getType |
Method Detail |
---|
BundleDependency setCallbacks(String added, String removed)
added
- the method to call when a bundle was addedremoved
- the method to call when a bundle was removed
BundleDependency setCallbacks(String added, String changed, 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 removed
BundleDependency setCallbacks(Object instance, String added, 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 removed
BundleDependency setCallbacks(Object instance, String added, String changed, 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 removed
BundleDependency setAutoConfig(boolean autoConfig)
autoConfig
- true
to enable auto configuration
BundleDependency setRequired(boolean required)
required
- true
if this bundle dependency is required
BundleDependency setBundle(Bundle bundle)
bundle
- the bundle to depend on
BundleDependency setFilter(String filter) throws IllegalArgumentException
filter
- the filter condition
IllegalArgumentException
BundleDependency setStateMask(int mask)
mask
- the mask to use
BundleDependency 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).
propagate
- true
to propagate the bundle manifest properties
BundleDependency setInstanceBound(boolean isInstanceBound)
init
life cycle method of a component.
isInstanceBound
- true
if this dependency is instance bound
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |