com.jeta.open.registry
Class JETARegistry

java.lang.Object
  extended by com.jeta.open.registry.JETARegistry

public class JETARegistry
extends Object

JETARegistry is a class that is used to manage objects and services for an application. Client classes can obtain an instance to well-known objects and/or services by using the JETARegistry. This class is not thread safe.


Constructor Summary
JETARegistry()
           
 
Method Summary
static Object lookup(String componentName)
           
static void rebind(String componentName, Object componentImpl)
          Register a component with the given name.
static void remove(String componentName)
          Removes a registered component with the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JETARegistry

public JETARegistry()
Method Detail

lookup

public static Object lookup(String componentName)
Returns:
a component that is registered with the given name. Null is returned if the component has not been registered.

rebind

public static void rebind(String componentName,
                          Object componentImpl)
Register a component with the given name. If a component a component has already been registered, it is overwritten.


remove

public static void remove(String componentName)
Removes a registered component with the given name.



Copyright © 2005-2007 Jeff Tassin & Todd Viegut. All Rights Reserved.