ccc.commons
Interface Registry

All Known Implementing Classes:
JNDI, MapRegistry

public interface Registry

A public API for a registry. Registries are used look up other objects. See See Martin Fowler's description (http://martinfowler.com/eaaCatalog/registry.html) for more details.

Author:
Civic Computing Ltd.

Method Summary
<T> T
get(java.lang.String location)
          Get an object from the registry.
 Registry put(java.lang.String location, java.lang.Object object)
          Put an object into JNDI.
 

Method Detail

get

<T> T get(java.lang.String location)
Get an object from the registry.

Type Parameters:
T - The type of the object at the specified location.
Parameters:
location - Location in the registry.
Returns:
The object at the specified location or NULL if the location is not found.

put

Registry put(java.lang.String location,
             java.lang.Object object)
Put an object into JNDI.

Parameters:
location - Location in the in the registry.
object - The object to put.
Returns:
'this' to allow a registry to be used in a 'fluently'.


Copyright © 2010. All Rights Reserved.