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>
TheServiceContextImpl
implements 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 theServiceContextImpl
to be configured with the givenObservableLifeCycleStatusAutomaton
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.refcodes.component.ext.observer.ObservableLifeCycleStatusAutomaton
getObservableLifeCycleAutomaton()
ServiceBus<S>
getServiceBus()
Retrieves theServiceBus
property from the property.
-
-
-
Constructor Detail
-
ServiceContextImpl
public ServiceContextImpl(ServiceBus<S> aServiceBus, org.refcodes.component.ext.observer.ObservableLifeCycleStatusAutomaton aObservableLifeCycleAutomaton)
Constructs theServiceContextImpl
to be configured with the givenObservableLifeCycleStatusAutomaton
.- Parameters:
aServiceBus
- TheServiceBus
with which to construct theServiceContextImpl
.aObservableLifeCycleAutomaton
- TheObservableLifeCycleStatusAutomaton
with which to construct theServiceContextImpl
.
-
-
Method Detail
-
getObservableLifeCycleAutomaton
public org.refcodes.component.ext.observer.ObservableLifeCycleStatusAutomaton getObservableLifeCycleAutomaton()
- Specified by:
getObservableLifeCycleAutomaton
in interfaceorg.refcodes.component.ext.observer.ObservableLifeCycleAutomatonAccessor
-
getServiceBus
public ServiceBus<S> getServiceBus()
Retrieves theServiceBus
property from the property.- Specified by:
getServiceBus
in interfaceServiceBusAccessor<S extends Service<?>>
- Returns:
- Returns the
ServiceBus
property stored by the property.
-
-