|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceDependency
Service dependency that can track an OSGi service.
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 | |
---|---|
ServiceDependency |
setAutoConfig(boolean autoConfig)
Sets auto configuration for this service. |
ServiceDependency |
setAutoConfig(String instanceName)
Sets auto configuration for this service. |
ServiceDependency |
setCallbacks(Object instance,
String added,
String removed)
Sets the callbacks for this service. |
ServiceDependency |
setCallbacks(Object instance,
String added,
String changed,
String removed)
Sets the callbacks for this service. |
ServiceDependency |
setCallbacks(String added,
String removed)
Sets the callbacks for this service. |
ServiceDependency |
setCallbacks(String added,
String changed,
String removed)
Sets the callbacks for this service. |
ServiceDependency |
setDefaultImplementation(Object implementation)
Sets the default implementation for this service dependency. |
ServiceDependency |
setInstanceBound(boolean isInstanceBound)
|
ServiceDependency |
setPropagate(boolean propagate)
Sets propagation of the service dependency properties to the provided service properties. |
ServiceDependency |
setPropagate(Object instance,
String method)
Sets an Object instance and a callback method used to propagate some properties to the provided service properties. |
ServiceDependency |
setRequired(boolean required)
Sets the required flag which determines if this service is required or not. |
ServiceDependency |
setService(Class serviceName)
Sets the name of the service that should be tracked. |
ServiceDependency |
setService(Class serviceName,
ServiceReference serviceReference)
Sets the name of the service that should be tracked. |
ServiceDependency |
setService(Class serviceName,
String serviceFilter)
Sets the name of the service that should be tracked. |
ServiceDependency |
setService(String serviceFilter)
Sets the filter for the services that should be tracked. |
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 |
---|
ServiceDependency setService(Class serviceName)
serviceName
- the name of the service
ServiceDependency setService(Class serviceName, String serviceFilter)
serviceName
- the name of the serviceserviceFilter
- the filter condition
ServiceDependency setService(String serviceFilter)
serviceFilter
- the filter condition
ServiceDependency setService(Class serviceName, ServiceReference serviceReference)
serviceName
- the name of the serviceserviceReference
- the service reference to track
ServiceDependency setDefaultImplementation(Object implementation)
implementation
- the instance to use or the class to instantiate if you want to lazily
instantiate this implementation
ServiceDependency setRequired(boolean required)
required
- the required flag
ServiceDependency setAutoConfig(boolean autoConfig)
autoConfig
- the value of auto config
ServiceDependency setAutoConfig(String instanceName)
instanceName
- the name of attribute to auto config
ServiceDependency setCallbacks(String added, String removed)
added
- the method to call when a service was addedremoved
- the method to call when a service was removed
ServiceDependency setCallbacks(String added, String changed, 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 removed
ServiceDependency setCallbacks(Object instance, String added, 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 removed
ServiceDependency setCallbacks(Object instance, String added, String changed, 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 removed
ServiceDependency setPropagate(boolean propagate)
ServiceDependency setPropagate(Object instance, 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.
ServiceDependency setInstanceBound(boolean isInstanceBound)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |