public class DelegatingServiceTarget extends Object implements ServiceTarget
Constructor and Description |
---|
DelegatingServiceTarget(ServiceTarget delegate)
Construct a new instance.
|
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 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 ServiceTarget addMonitor(StabilityMonitor monitor)
addMonitor
in interface ServiceTarget
monitor
- the monitor to add to the target@Deprecated public ServiceTarget removeMonitor(StabilityMonitor monitor)
removeMonitor
in interface ServiceTarget
monitor
- the monitor to remove@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 © 2021 JBoss by Red Hat. All rights reserved.