Module org.refcodes.servicebus
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>
The
ServiceContextImpl
implements the ServiceContext
.-
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
ConstructorDescriptionServiceContextImpl
(ServiceBus<S> aServiceBus, org.refcodes.component.ext.observer.ObservableLifecycleStatusAutomaton aObservableLifecycleAutomaton) Constructs theServiceContextImpl
to be configured with the givenObservableLifecycleStatusAutomaton
. -
Method Summary
Modifier and TypeMethodDescriptionorg.refcodes.component.ext.observer.ObservableLifecycleStatusAutomaton
Retrieves theServiceBus
property from the property.
-
Constructor Details
-
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 Details
-
getObservableLifecycleAutomaton
public org.refcodes.component.ext.observer.ObservableLifecycleStatusAutomaton getObservableLifecycleAutomaton()- Specified by:
getObservableLifecycleAutomaton
in interfaceorg.refcodes.component.ext.observer.ObservableLifecycleAutomatonAccessor
-
getServiceBus
Retrieves theServiceBus
property from the property.- Specified by:
getServiceBus
in interfaceServiceBusAccessor<S extends Service<?>>
- Returns:
- Returns the
ServiceBus
property stored by the property.
-