Module org.refcodes.servicebus
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<SCTX>
,ServiceDescriptor<S,
SCTX>
public class ServiceDescriptorImpl<S extends Service<?>,SCTX>
extends Object
implements ServiceDescriptor<S,SCTX>
The
ServiceDescriptorImpl
implements the ServiceDescriptor
.-
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
ConstructorDescriptionServiceDescriptorImpl
(S aService, SCTX aServiceContext) Constructs theServiceDescriptorImpl
to be configured with the givenService
and the given context. -
Method Summary
-
Constructor Details
-
ServiceDescriptorImpl
Constructs theServiceDescriptorImpl
to be configured with the givenService
and the given context.- Parameters:
aService
- TheService
with which to configure theServiceDirectoryImpl
.aServiceContext
- TheService
's context with which to configure theServiceDirectoryImpl
.
-
-
Method Details
-
getServiceContext
Retrieves theService
's context property from the property.- Specified by:
getServiceContext
in interfaceServiceContextAccessor<S extends Service<?>>
- Returns:
- Returns the
Service
property stored by the property.
-
getService
Retrieves theService
property from the property.- Specified by:
getService
in interfaceServiceAccessor<S extends Service<?>>
- Returns:
- Returns the
Service
property stored by the property.
-