Package org.refcodes.servicebus
Class ServiceDescriptorImpl<S extends Service<?>,SCTX>
- java.lang.Object
-
- org.refcodes.servicebus.ServiceDescriptorImpl<S,SCTX>
-
- Type Parameters:
S- The type to be used for theService.SCTX- The type to be used for theService's context.
- All Implemented Interfaces:
ServiceAccessor<S>,ServiceContextAccessor<S>,ServiceDescriptor<S,SCTX>
public class ServiceDescriptorImpl<S extends Service<?>,SCTX> extends java.lang.Object implements ServiceDescriptor<S,SCTX>
TheServiceDescriptorImplimplements theServiceDescriptor.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.servicebus.ServiceAccessor
ServiceAccessor.ServiceMutator<S extends Service<?>>, ServiceAccessor.ServiceProperty<S extends Service<?>>
-
Nested classes/interfaces inherited from interface org.refcodes.servicebus.ServiceContextAccessor
ServiceContextAccessor.ServiceContextMutator<SCTX>, ServiceContextAccessor.ServiceContextProperty<SCTX>
-
-
Constructor Summary
Constructors Constructor Description ServiceDescriptorImpl(S aService, SCTX aServiceContext)Constructs theServiceDescriptorImplto be configured with the givenServiceand the given context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SgetService()Retrieves theServiceproperty from the property.SCTXgetServiceContext()Retrieves theService's context property from the property.
-
-
-
Constructor Detail
-
ServiceDescriptorImpl
public ServiceDescriptorImpl(S aService, SCTX aServiceContext)
Constructs theServiceDescriptorImplto be configured with the givenServiceand the given context.- Parameters:
aService- TheServicewith which to configure theServiceDirectoryImpl.aServiceContext- TheService's context with which to configure theServiceDirectoryImpl.
-
-
Method Detail
-
getServiceContext
public SCTX getServiceContext()
Retrieves theService's context property from the property.- Specified by:
getServiceContextin interfaceServiceContextAccessor<S extends Service<?>>- Returns:
- Returns the
Serviceproperty stored by the property.
-
getService
public S getService()
Retrieves theServiceproperty from the property.- Specified by:
getServicein interfaceServiceAccessor<S extends Service<?>>- Returns:
- Returns the
Serviceproperty stored by the property.
-
-