public interface ResourceDependency extends Dependency, ComponentDependencyDeclaration, ResourceHandler
(Component, URL, Dictionary)
(Component, URL)
(Component)
(URL, Dictionary)
(URL)
(Object)
STATE_AVAILABLE_OPTIONAL, STATE_AVAILABLE_REQUIRED, STATE_NAMES, STATE_OPTIONAL, STATE_REQUIRED, STATE_UNAVAILABLE_OPTIONAL, STATE_UNAVAILABLE_REQUIRED
Modifier and Type | Method and Description |
---|---|
ResourceDependency |
setAutoConfig(boolean autoConfig)
Sets auto configuration for this service.
|
ResourceDependency |
setAutoConfig(java.lang.String instanceName)
Sets auto configuration for this service.
|
ResourceDependency |
setCallbacks(java.lang.Object instance,
java.lang.String added,
java.lang.String removed)
Sets the callbacks for this service.
|
ResourceDependency |
setCallbacks(java.lang.Object instance,
java.lang.String added,
java.lang.String changed,
java.lang.String removed)
Sets the callbacks for this service.
|
ResourceDependency |
setCallbacks(java.lang.String added,
java.lang.String removed)
Sets the callbacks for this service.
|
ResourceDependency |
setCallbacks(java.lang.String added,
java.lang.String changed,
java.lang.String removed)
Sets the callbacks for this service.
|
ResourceDependency |
setFilter(java.lang.String resourceFilter)
Sets the filter condition for this resource dependency.
|
ResourceDependency |
setPropagate(boolean propagate) |
ResourceDependency |
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.
|
ResourceDependency |
setRequired(boolean required)
Determines if this is a required dependency or not.
|
ResourceDependency |
setResource(java.net.URL resource)
Sets the resource for this dependency.
|
getAutoConfigName, getProperties, isAutoConfig, isAvailable, isPropagated, isRequired, overrideServiceProperties
getFilter, getName, getSimpleName, getState, getType
ResourceDependency setCallbacks(java.lang.String added, java.lang.String removed)
added
- the method to call when a service was addedremoved
- the method to call when a service was removedResourceDependency setCallbacks(java.lang.String added, java.lang.String changed, java.lang.String removed)
added
- the method to call when a service was addedchanged
- the method to call when a service was changedremoved
- the method to call when a service was removedResourceDependency 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 service was addedremoved
- the method to call when a service was removedResourceDependency 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 service was addedchanged
- the method to call when a service was changedremoved
- the method to call when a service was removedResourceDependency setAutoConfig(boolean autoConfig)
autoConfig
- the value of auto configResourceDependency setAutoConfig(java.lang.String instanceName)
instanceName
- the name of attribute to auto configResourceDependency setResource(java.net.URL resource)
resource
- the URL of the resourceResourceDependency setRequired(boolean required)
required
- true
if the dependency is requiredResourceDependency setFilter(java.lang.String resourceFilter)
resourceFilter
- the filter conditionResourceDependency setPropagate(boolean propagate)
setPropagate(Object, String)
ResourceDependency 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.