|
JBoss Remoting 3.0.0.Beta2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.remoting.spi.NamedServiceRegistry
public final class NamedServiceRegistry

A registry associating names with services. Specifically, the name is associated with a handle to a request handler source instance; this handle is owned by the registry, so closing the handle will remove the entry.
| Constructor Summary | |
|---|---|
NamedServiceRegistry()
Construct a new empty registry. |
|
| Method Summary | |
|---|---|
Set<Map.Entry<QualifiedName,Handle<RequestHandlerSource>>> |
getEntrySet()
Get an unmodifiable view of the entry set of the registry. |
Handle<RequestHandlerSource> |
lookupService(QualifiedName path)
Find a service at a location in the registry. |
Handle<RequestHandlerSource> |
registerService(QualifiedName path,
RequestHandlerSource service)
Register a service at the given path. |
String |
toString()
Returns a brief description of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NamedServiceRegistry()
| Method Detail |
|---|
public Handle<RequestHandlerSource> registerService(QualifiedName path,
RequestHandlerSource service)
throws IOException
path - the path of the service registrationservice - the service
IOException - if an error occurspublic Handle<RequestHandlerSource> lookupService(QualifiedName path)
path - the path
null if it is not foundpublic Set<Map.Entry<QualifiedName,Handle<RequestHandlerSource>>> getEntrySet()
public String toString()
toString in class Object
|
JBoss Remoting 3.0.0.Beta2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||