Package org.jboss.msc.service
Interface BatchServiceTarget
-
- All Superinterfaces:
ServiceTarget
@Deprecated public interface BatchServiceTarget extends ServiceTarget
Deprecated.this class will be removed in a future release.AServiceTarget
that providesremoval
of all services installed so far.- Author:
- Flavia Rainone
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description BatchServiceTarget
addDependency(Collection<ServiceName> dependencies)
Deprecated.Add a collection of dependencies that will be added to the all ServiceBuilders installed in this targetBatchServiceTarget
addDependency(ServiceName dependency)
Deprecated.Add a dependency that will be added to the all ServiceBuilders installed in this target.BatchServiceTarget
addDependency(ServiceName... dependencies)
Deprecated.Add a list of dependencies that will be added to the all ServiceBuilders installed in this target.BatchServiceTarget
addListener(Collection<ServiceListener<Object>> listeners)
Deprecated.Add a collection of service listener that will be added to all ServiceBuilders installed in this target.BatchServiceTarget
addListener(ServiceListener<Object> listener)
Deprecated.Add a service listener that will be added to all the ServiceBuilders installed in this target.BatchServiceTarget
addListener(ServiceListener<Object>... listeners)
Deprecated.Add a list of service listener that will be added to all ServiceBuilders installed in this target.BatchServiceTarget
addMonitor(StabilityMonitor monitor)
Deprecated.Add a stability monitor that will be added to all the ServiceBuilders installed in this target.BatchServiceTarget
addMonitors(StabilityMonitor... monitors)
Deprecated.Add a stability monitors that will be added to all the ServiceBuilders installed in this target.BatchServiceTarget
removeDependency(ServiceName dependency)
Deprecated.Remove a dependency from this target.BatchServiceTarget
removeListener(ServiceListener<Object> listener)
Deprecated.Remove a listener from this target, if it exists.BatchServiceTarget
removeMonitor(StabilityMonitor monitor)
Deprecated.Remove a monitor from this target, if it exists.void
removeServices()
Deprecated.Removes all services installed into this target so far.-
Methods inherited from interface org.jboss.msc.service.ServiceTarget
addListener, addService, addService, addServiceValue, batchTarget, getDependencies, getListeners, getMonitors, removeListener, subTarget
-
-
-
-
Method Detail
-
removeServices
void removeServices()
Deprecated.Removes all services installed into this target so far.
-
addMonitor
BatchServiceTarget addMonitor(StabilityMonitor monitor)
Deprecated.Add a stability monitor that will be added to all the ServiceBuilders installed in this target.- Specified by:
addMonitor
in interfaceServiceTarget
- Parameters:
monitor
- the monitor to add to the target- Returns:
- this target
-
addMonitors
BatchServiceTarget addMonitors(StabilityMonitor... monitors)
Deprecated.Add a stability monitors that will be added to all the ServiceBuilders installed in this target.- Specified by:
addMonitors
in interfaceServiceTarget
- Parameters:
monitors
- the monitors to add to the target- Returns:
- this target
-
removeMonitor
BatchServiceTarget removeMonitor(StabilityMonitor monitor)
Deprecated.Remove a monitor from this target, if it exists.- Specified by:
removeMonitor
in interfaceServiceTarget
- Parameters:
monitor
- the monitor to remove- Returns:
- this target
-
addListener
BatchServiceTarget addListener(ServiceListener<Object> listener)
Deprecated.Add a service listener that will be added to all the ServiceBuilders installed in this target.- Specified by:
addListener
in interfaceServiceTarget
- Parameters:
listener
- the listener to add to the target- Returns:
- this target
-
addListener
BatchServiceTarget addListener(ServiceListener<Object>... listeners)
Deprecated.Add a list of service listener that will be added to all ServiceBuilders installed in this target.- Specified by:
addListener
in interfaceServiceTarget
- Parameters:
listeners
- a list of listeners to add to the target- Returns:
- this target
-
addListener
BatchServiceTarget addListener(Collection<ServiceListener<Object>> listeners)
Deprecated.Add a collection of service listener that will be added to all ServiceBuilders installed in this target.- Specified by:
addListener
in interfaceServiceTarget
- Parameters:
listeners
- a collection of listeners to add to the target- Returns:
- this target
-
removeListener
BatchServiceTarget removeListener(ServiceListener<Object> listener)
Deprecated.Remove a listener from this target, if it exists.- Specified by:
removeListener
in interfaceServiceTarget
- Parameters:
listener
- the listener to remove- Returns:
- this target
-
addDependency
BatchServiceTarget addDependency(ServiceName dependency)
Deprecated.Add a dependency that will be added to the all ServiceBuilders installed in this target.- Specified by:
addDependency
in interfaceServiceTarget
- Parameters:
dependency
- the dependency to add to the target- Returns:
- this target
-
addDependency
BatchServiceTarget addDependency(ServiceName... dependencies)
Deprecated.Add a list of dependencies that will be added to the all ServiceBuilders installed in this target.- Specified by:
addDependency
in interfaceServiceTarget
- Parameters:
dependencies
- a list of dependencies to add to the target- Returns:
- this target
-
addDependency
BatchServiceTarget addDependency(Collection<ServiceName> dependencies)
Deprecated.Add a collection of dependencies that will be added to the all ServiceBuilders installed in this target- Specified by:
addDependency
in interfaceServiceTarget
- Parameters:
dependencies
- a collection of dependencies to add to this target- Returns:
- this target
-
removeDependency
BatchServiceTarget removeDependency(ServiceName dependency)
Deprecated.Remove a dependency from this target. Subsequently defined services will not have this dependency.- Specified by:
removeDependency
in interfaceServiceTarget
- Parameters:
dependency
- the dependency- Returns:
- this target
-
-