NextApp Echo2
v2.1.1

nextapp.echo2.webrender
Class ServiceRegistry

java.lang.Object
  extended by nextapp.echo2.webrender.ServiceRegistry

public class ServiceRegistry
extends java.lang.Object

A registry of Service objects that may be recalled based on Id values.


Constructor Summary
ServiceRegistry()
          Creates a new ServiceRegistry.
 
Method Summary
 void add(Service service)
          Adds a service to the registry.
 Service get(java.lang.String id)
          Returns the service with the specified Id.
 void remove(Service service)
          Removes a service from the registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceRegistry

public ServiceRegistry()
Creates a new ServiceRegistry.

Method Detail

add

public void add(Service service)
Adds a service to the registry.

Parameters:
service - The service to be added.

get

public Service get(java.lang.String id)
Returns the service with the specified Id.

Parameters:
id - The Id of the service to be retrieved.
Returns:
The service which is identified by id.

remove

public void remove(Service service)
Removes a service from the registry.

Parameters:
service - The service to be removed.

NextApp Echo2
v2.1.1