|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.xfire.service.DefaultServiceRegistry
public class DefaultServiceRegistry
Field Summary |
---|
Fields inherited from interface org.codehaus.xfire.service.ServiceRegistry |
---|
ROLE |
Constructor Summary | |
---|---|
DefaultServiceRegistry()
|
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 qualified 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 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 endpoint)
Unregisters the service with the given qualified name, if found. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultServiceRegistry()
Method Detail |
---|
public Service getService(String name)
ServiceEndpoint
with the given qualified name, if found. Returns null
if
not found.
getService
in interface ServiceRegistry
name
- the service name.
null
if not found.public Service getService(QName name)
ServiceRegistry
ServiceEndpoint
with the given name, if found. Returns null
if not found.
getService
in interface ServiceRegistry
name
- the service name.
null
if not found.public void register(Service endpoint)
ServiceEndpoint
with this registry.
register
in interface ServiceRegistry
endpoint
- the endpoint.public void unregister(Service endpoint)
unregister
in interface ServiceRegistry
name
- the service name.public boolean hasService(String name)
hasService
in interface ServiceRegistry
name
- the service name.
true
if this registry has a service with the given name; false
otherwise.public boolean hasService(QName name)
ServiceRegistry
hasService
in interface ServiceRegistry
name
- the service name.
true
if this registry has a service with the given name; false
otherwise.public Collection getServices()
ServiceEndpoint
registered to this registry.
getServices
in interface ServiceRegistry
public void addRegistrationEventListener(RegistrationEventListener listener)
addRegistrationEventListener
in interface ServiceRegistry
listener
- the listener.public void removeRegistrationEventListener(RegistrationEventListener listener)
removeRegistrationEventListener
in interface ServiceRegistry
listener
- the listener.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |