public interface NamedObjectEnvironment extends Environment
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getObject(String name,
Class<T> requiredType)
Returns the object in Shiro's environment with the specified name and type or
null if
no object with that name was found. |
getSecurityManager<T> T getObject(String name, Class<T> requiredType) throws RequiredTypeException
null if
no object with that name was found.T - the type of the classname - the assigned name of the object.requiredType - the class to which the discovered object must be assignable.null if
no object with that name was found.RequiredTypeException - if the discovered object does not equal, extend, or implement the specified class.Copyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.