public class ServiceProviderRegistrationFactoryAdapter<T> extends Object implements ServiceProviderRegistrationFactory<T>
ServiceProviderRegistry
to the deprecated ServiceProviderRegistrationFactory
interface.Constructor and Description |
---|
ServiceProviderRegistrationFactoryAdapter(ServiceProviderRegistry<T> registry) |
Modifier and Type | Method and Description |
---|---|
Group |
getGroup()
Returns the group with which to register service providers.
|
Set<Node> |
getProviders(T service)
Returns the set of nodes that can provide the specified service.
|
Set<T> |
getServices()
Returns the complete list of services known to this registry.
|
ServiceProviderRegistration<T> |
register(T service)
Registers the local node as providing the specified service.
|
ServiceProviderRegistration<T> |
register(T service,
ServiceProviderRegistration.Listener listener)
Registers the local node as providing the specified service, using the specified listener.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createRegistration
public ServiceProviderRegistrationFactoryAdapter(ServiceProviderRegistry<T> registry)
public Group getGroup()
getGroup
in interface ServiceProviderRegistry<T>
public ServiceProviderRegistration<T> register(T service)
register
in interface ServiceProviderRegistry<T>
service
- a service to registerpublic ServiceProviderRegistration<T> register(T service, ServiceProviderRegistration.Listener listener)
register
in interface ServiceProviderRegistry<T>
service
- a service to registerlistener
- a registry listenerpublic Set<Node> getProviders(T service)
getProviders
in interface ServiceProviderRegistry<T>
service
- a service to obtain providers forpublic Set<T> getServices()
getServices
in interface ServiceProviderRegistry<T>
Copyright © 2017 JBoss by Red Hat. All rights reserved.