|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceRegistry
Defines the interface that for places to register, unregister, and get information about services.
Field Summary | |
---|---|
static String |
ROLE
Constant used to define the role of service registries. |
Method Summary | |
---|---|
void |
addRegistrationEventListener(RegistrationEventListener listener)
Add a listener for registration events. |
Service |
getService(QName name)
Returns the ServiceEndpoint with the given name, if found. |
Service |
getService(String name)
Returns the ServiceEndpoint with the given name, if found. |
Collection |
getServices()
Returns all ServiceEndpoint registered to this registry. |
boolean |
hasService(QName name)
Indicates whether this registry has a service endpoint with the given name. |
boolean |
hasService(String name)
Indicates whether this registry has a service endpoint with the given name. |
void |
register(Service endpoint)
Registers a given ServiceEndpoint with this registry. |
void |
removeRegistrationEventListener(RegistrationEventListener listener)
Remove a listener for registration events. |
void |
unregister(Service service)
Unregisters the service endpoint with the given name, if found. |
Field Detail |
---|
static final String ROLE
Method Detail |
---|
Service getService(String name)
ServiceEndpoint
with the given name, if found. Returns null
if not found.
name
- the service name.
null
if not found.Service getService(QName name)
ServiceEndpoint
with the given name, if found. Returns null
if not found.
name
- the service name.
null
if not found.void register(Service endpoint)
ServiceEndpoint
with this registry.
endpoint
- the endpoint.void unregister(Service service)
name
- the service name.boolean hasService(String name)
name
- the service name.
true
if this registry has a service with the given name; false
otherwise.boolean hasService(QName name)
name
- the service name.
true
if this registry has a service with the given name; false
otherwise.Collection getServices()
ServiceEndpoint
registered to this registry.
void addRegistrationEventListener(RegistrationEventListener listener)
listener
- the listener.void removeRegistrationEventListener(RegistrationEventListener listener)
listener
- the listener.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |