public class DelegatingServiceTarget extends Object implements ServiceTarget
Constructor and Description |
---|
DelegatingServiceTarget(ServiceTarget delegate)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
ServiceTarget |
addDependency(Collection<ServiceName> dependencies)
Deprecated.
|
ServiceTarget |
addDependency(ServiceName... dependencies)
Deprecated.
|
ServiceTarget |
addDependency(ServiceName dependency)
Deprecated.
|
ServiceTarget |
addListener(Collection<ServiceListener<Object>> listeners)
Deprecated.
|
ServiceTarget |
addListener(LifecycleListener listener)
Add a service lifecycle listener that will be added to this service.
|
ServiceTarget |
addListener(ServiceListener<Object>... listeners)
Deprecated.
|
ServiceTarget |
addListener(ServiceListener<Object> listener)
Deprecated.
|
ServiceTarget |
addMonitor(StabilityMonitor monitor)
Add a stability monitor that will be added to all the ServiceBuilders installed in this target.
|
ServiceTarget |
addMonitors(StabilityMonitor... monitors)
Deprecated.
|
ServiceBuilder<?> |
addService(ServiceName name)
Get a builder which can be used to add a service to this target.
|
<T> ServiceBuilder<T> |
addService(ServiceName name,
Service<T> service)
Deprecated.
|
<T> ServiceBuilder<T> |
addServiceValue(ServiceName name,
Value<? extends Service<T>> value)
Deprecated.
|
BatchServiceTarget |
batchTarget()
Deprecated.
|
protected ServiceTarget |
getDelegate()
Get the ServiceTarget delegate.
|
Set<ServiceName> |
getDependencies()
Deprecated.
|
Set<ServiceListener<Object>> |
getListeners()
Deprecated.
|
Set<StabilityMonitor> |
getMonitors()
Deprecated.
|
ServiceTarget |
removeDependency(ServiceName dependency)
Deprecated.
|
ServiceTarget |
removeListener(LifecycleListener listener)
Remove a lifecycle listener from this target, if it exists.
|
ServiceTarget |
removeListener(ServiceListener<Object> listener)
Deprecated.
|
ServiceTarget |
removeMonitor(StabilityMonitor monitor)
Remove a monitor from this target, if it exists.
|
ServiceTarget |
subTarget()
Create a sub-target using this as the parent target.
|
public DelegatingServiceTarget(ServiceTarget delegate)
delegate
- the delegate service targetprotected ServiceTarget getDelegate()
public ServiceTarget addListener(LifecycleListener listener)
addListener
in interface ServiceTarget
listener
- the lifecycle listener to add to the servicepublic ServiceTarget removeListener(LifecycleListener listener)
removeListener
in interface ServiceTarget
listener
- the lifecycle listener to removepublic ServiceTarget addMonitor(StabilityMonitor monitor)
addMonitor
in interface ServiceTarget
monitor
- the monitor to add to the targetpublic ServiceTarget removeMonitor(StabilityMonitor monitor)
removeMonitor
in interface ServiceTarget
monitor
- the monitor to removepublic ServiceBuilder<?> addService(ServiceName name)
addService
in interface ServiceTarget
name
- the service namepublic ServiceTarget subTarget()
subTarget
in interface ServiceTarget
@Deprecated public <T> ServiceBuilder<T> addServiceValue(ServiceName name, Value<? extends Service<T>> value) throws IllegalArgumentException
addServiceValue
in interface ServiceTarget
name
- the service namevalue
- the service valueIllegalArgumentException
@Deprecated public <T> ServiceBuilder<T> addService(ServiceName name, Service<T> service) throws IllegalArgumentException
addService
in interface ServiceTarget
name
- the service nameservice
- the serviceIllegalArgumentException
@Deprecated public ServiceTarget addListener(ServiceListener<Object> listener)
addListener
in interface ServiceTarget
listener
- the listener to add to the target@Deprecated public ServiceTarget addListener(ServiceListener<Object>... listeners)
addListener
in interface ServiceTarget
listeners
- a list of listeners to add to the target@Deprecated public ServiceTarget addListener(Collection<ServiceListener<Object>> listeners)
addListener
in interface ServiceTarget
listeners
- a collection of listeners to add to the target@Deprecated public ServiceTarget removeListener(ServiceListener<Object> listener)
removeListener
in interface ServiceTarget
listener
- the listener to remove@Deprecated public Set<ServiceListener<Object>> getListeners()
getListeners
in interface ServiceTarget
@Deprecated public ServiceTarget addDependency(ServiceName dependency)
addDependency
in interface ServiceTarget
dependency
- the dependency to add to the target@Deprecated public ServiceTarget addDependency(ServiceName... dependencies)
addDependency
in interface ServiceTarget
dependencies
- a list of dependencies to add to the target@Deprecated public ServiceTarget addDependency(Collection<ServiceName> dependencies)
addDependency
in interface ServiceTarget
dependencies
- a collection of dependencies to add to this target@Deprecated public ServiceTarget removeDependency(ServiceName dependency)
removeDependency
in interface ServiceTarget
dependency
- the dependency@Deprecated public Set<ServiceName> getDependencies()
getDependencies
in interface ServiceTarget
@Deprecated public BatchServiceTarget batchTarget()
batchTarget
in interface ServiceTarget
@Deprecated public ServiceTarget addMonitors(StabilityMonitor... monitors)
addMonitors
in interface ServiceTarget
monitors
- the monitors to add to the target@Deprecated public Set<StabilityMonitor> getMonitors()
getMonitors
in interface ServiceTarget
Copyright © 2019 JBoss by Red Hat. All rights reserved.