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()
Gets the service.
|
SCTX |
getServiceContext()
Gets the service context.
|
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()
getServiceContext
in interface ServiceContextAccessor<SCTX>
public S getService()
getService
in interface ServiceAccessor<S extends Service<?>>
Copyright © 2017. All rights reserved.