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>
public class ServiceContextImpl<S extends Service<?>> extends 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.
-
-