S
- The type to be used for the Service
.SCTX
- The type to be used for the Service
's context.public class ServiceDescriptorImpl<S extends Service<?>,SCTX> extends Object implements ServiceDescriptor<S,SCTX>
ServiceDescriptorImpl
implements the ServiceDescriptor
.ServiceAccessor.ServiceMutator<S extends Service<?>>, ServiceAccessor.ServiceProperty<S extends Service<?>>
ServiceContextAccessor.ServiceContextMutator<SCTX>, ServiceContextAccessor.ServiceContextProperty<SCTX>
Constructor and Description |
---|
ServiceDescriptorImpl(S aService,
SCTX aServiceContext)
Constructs the
ServiceDescriptorImpl to be configured with the
given Service and the given context. |
Modifier and Type | Method and Description |
---|---|
S |
getService()
Retrieves the
Service property from the property. |
SCTX |
getServiceContext()
Retrieves the
Service 's context property from the property. |
public ServiceDescriptorImpl(S aService, SCTX aServiceContext)
ServiceDescriptorImpl
to be configured with the
given Service
and the given context.aService
- The Service
with which to configure the
ServiceDirectoryImpl
.aServiceContext
- The Service
's context with which to
configure the ServiceDirectoryImpl
.public SCTX getServiceContext()
ServiceContextAccessor
Service
's context property from the property.getServiceContext
in interface ServiceContextAccessor<SCTX>
Service
property stored by the property.public S getService()
ServiceAccessor
Service
property from the property.getService
in interface ServiceAccessor<S extends Service<?>>
Service
property stored by the property.Copyright © 2015. All rights reserved.