org.apache.hivemind.lib
Interface NameLookup
- All Known Implementing Classes:
- NameLookupImpl
public interface NameLookup
Service interface for performing name lookups. This is typically
implemented as a wrapper around JNDI. This service is available
as hivemind.lib.NameLookup.
- Author:
- Howard Lewis Ship
|
Method Summary |
java.lang.Object |
lookup(java.lang.String name,
java.lang.Class expected)
Performs the lookup, returning the object that was found. |
lookup
java.lang.Object lookup(java.lang.String name,
java.lang.Class expected)
- Performs the lookup, returning the object that was found.
- Parameters:
name - the name to lookupexpected - the expected class of the object; the object found must be assignable
to this class (which may be a class or interface)
- Throws:
org.apache.tapestry.ApplicationRuntimeException - if an error occurs during
the lookup, or if the found object can not be assigned to the expected class.