Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## nextapp.echo2.webrender
Class ServiceRegistry

    java.lang.Object
      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.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD