public interface NameLookup
hivemind.lib.NameLookup
.Modifier and Type | Method and Description |
---|---|
java.lang.Object |
lookup(java.lang.String name,
java.lang.Class expected)
Performs the lookup, returning the object that was found.
|
java.lang.Object lookup(java.lang.String name, java.lang.Class expected)
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)org.apache.tapestry.ApplicationRuntimeException
- if an error occurs during
the lookup, or if the found object can not be assigned to the expected class.