|
NextApp Echo App Container 1.0.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echoservlet.ServiceRegistry
A registry of Service
objects that may be recalled based
on Id
values.
Field Summary | |
private java.util.Map |
serviceAliases
Maps a service to a set of aliases |
private java.util.Map |
serviceMap
Maps service Ids to services |
Constructor Summary | |
(package private) |
ServiceRegistry()
Creates a new ServiceRegistry . |
Method Summary | |
(package private) void |
add(Service service)
Adds a service to the registry. |
(package private) void |
add(Service service,
java.lang.String alias)
Adds an aliased service to the registry. |
(package private) Service |
get(Id id)
Returns the service with the specified Id . |
(package private) void |
remove(Service service)
Removes a service from the registry. |
(package private) void |
remove(Service service,
java.lang.String alias)
Removes an aliased service from the registry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final java.util.Map serviceMap
private final java.util.Map serviceAliases
Constructor Detail |
ServiceRegistry()
ServiceRegistry
.
Method Detail |
void add(Service service)
service
- The service to be added.void add(Service service, java.lang.String alias)
service
- The service to be added.alias
- The alias to use for the service.Service get(Id id)
Id
.
id
- The Id
of the service to be retrieved.
id
.void remove(Service service)
service
- The service to be removed.void remove(Service service, java.lang.String alias)
service
- The service to be removed.alias
- The alias of the service.
|
NextApp Echo App Container 1.0.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |