org.openbp.common.registry
Interface MappingRegistryExtender


public interface MappingRegistryExtender

Extends the MappingRegistry in order to provide services external to the registry itself. For example, this might be an EJB lookup.

Author:
Heiko Erhardt

Method Summary
 java.lang.Object lookup(java.lang.Class cls)
          Retrieves an object by its class or interface name.
 java.lang.Object lookup(java.lang.String key)
          Retrieves the object that has been registered for the passed key or null if none could be found.
 

Method Detail

lookup

java.lang.Object lookup(java.lang.String key)
Retrieves the object that has been registered for the passed key or null if none could be found.

Parameters:
key - The key to lookup the object for
Returns:
The object registered for the key or null

lookup

java.lang.Object lookup(java.lang.Class cls)
Retrieves an object by its class or interface name. This method is typically used to retrieve a concrete instance of an interface.

Parameters:
cls - The interface to lookup the implementation for
Returns:
The object registered for the key or null


Copyright © 2011. All Rights Reserved.