Package org.refcodes.servicebus
Class ServiceContextImpl<S extends Service<?>>
- java.lang.Object
-
- org.refcodes.servicebus.ServiceContextImpl<S>
-
- Type Parameters:
S- The type to be used for theService.
- All Implemented Interfaces:
org.refcodes.component.ext.observer.ObservableLifeCycleAutomatonAccessor,ServiceBusAccessor<S>,ServiceContext<S>
public class ServiceContextImpl<S extends Service<?>> extends java.lang.Object implements ServiceContext<S>
TheServiceContextImplimplements theServiceContext.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.component.ext.observer.ObservableLifeCycleAutomatonAccessor
org.refcodes.component.ext.observer.ObservableLifeCycleAutomatonAccessor.ObservableLifeCycleAutomatonMutator, org.refcodes.component.ext.observer.ObservableLifeCycleAutomatonAccessor.ObservableLifeCycleAutomatonProperty
-
Nested classes/interfaces inherited from interface org.refcodes.servicebus.ServiceBusAccessor
ServiceBusAccessor.ServiceBusMutator<S extends Service<?>>, ServiceBusAccessor.ServiceBusProperty<S extends Service<?>>
-
-
Constructor Summary
Constructors Constructor Description ServiceContextImpl(ServiceBus<S> aServiceBus, org.refcodes.component.ext.observer.ObservableLifeCycleStatusAutomaton aObservableLifeCycleAutomaton)Constructs theServiceContextImplto be configured with the givenObservableLifeCycleStatusAutomaton.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.refcodes.component.ext.observer.ObservableLifeCycleStatusAutomatongetObservableLifeCycleAutomaton()ServiceBus<S>getServiceBus()Retrieves theServiceBusproperty from the property.
-
-
-
Constructor Detail
-
ServiceContextImpl
public ServiceContextImpl(ServiceBus<S> aServiceBus, org.refcodes.component.ext.observer.ObservableLifeCycleStatusAutomaton aObservableLifeCycleAutomaton)
Constructs theServiceContextImplto be configured with the givenObservableLifeCycleStatusAutomaton.- Parameters:
aServiceBus- TheServiceBuswith which to construct theServiceContextImpl.aObservableLifeCycleAutomaton- TheObservableLifeCycleStatusAutomatonwith which to construct theServiceContextImpl.
-
-
Method Detail
-
getObservableLifeCycleAutomaton
public org.refcodes.component.ext.observer.ObservableLifeCycleStatusAutomaton getObservableLifeCycleAutomaton()
- Specified by:
getObservableLifeCycleAutomatonin interfaceorg.refcodes.component.ext.observer.ObservableLifeCycleAutomatonAccessor
-
getServiceBus
public ServiceBus<S> getServiceBus()
Retrieves theServiceBusproperty from the property.- Specified by:
getServiceBusin interfaceServiceBusAccessor<S extends Service<?>>- Returns:
- Returns the
ServiceBusproperty stored by the property.
-
-