S
- The type to be used for the Service
.SCTX
- The type to be used for the Service
's context.public class ServiceLookupImpl<S extends Service<?>,SCTX> extends Object implements ServiceLookup<S,SCTX>
ServiceLookupImpl
implements the ServiceLookup
.Constructor and Description |
---|
ServiceLookupImpl(org.refcodes.factory.CollectionFactory<Set<ServiceDescriptor<S,SCTX>>> aTypedTypeFactory)
Creates a
ServiceLookupImpl for the required type. |
Modifier and Type | Method and Description |
---|---|
Set<ServiceDescriptor<S,SCTX>> |
getServiceDescriptors()
Returns a collection containing the
ServiceDescriptor instances
known by the ServiceLookup . |
boolean |
hasService(ServiceDescriptor<S,SCTX> aServiceDescriptor)
Determines whether the given service is known by the service bus by
taking the service type and the service meta data as criteria, not the
service identity.
|
public ServiceLookupImpl(org.refcodes.factory.CollectionFactory<Set<ServiceDescriptor<S,SCTX>>> aTypedTypeFactory)
ServiceLookupImpl
for the required type.aTypedTypeFactory
- The factory to be used to lookup the given
type's instances.public Set<ServiceDescriptor<S,SCTX>> getServiceDescriptors()
ServiceDescriptor
instances
known by the ServiceLookup
.getServiceDescriptors
in interface ServiceLookup<S extends Service<?>,SCTX>
ServiceDescriptor
instances
known by the ServiceLookup
.public boolean hasService(ServiceDescriptor<S,SCTX> aServiceDescriptor)
hasService
in interface ServiceLookup<S extends Service<?>,SCTX>
aServiceDescriptor
- the a service descriptorCopyright © 2018. All rights reserved.