|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.xfire.service.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(javax.xml.namespace.QName name)
Returns the ServiceEndpoint with the given name, if found. |
Service |
getService(java.lang.String name)
Returns the ServiceEndpoint with the given qualified name, if found. |
java.util.Collection |
getServices()
Returns all ServiceEndpoint registered to this registry. |
boolean |
hasService(javax.xml.namespace.QName name)
Indicates whether this registry has a service endpoint with the given name. |
boolean |
hasService(java.lang.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(java.lang.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(javax.xml.namespace.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
public boolean hasService(java.lang.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(javax.xml.namespace.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 java.util.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 |