org.apache.shiro.jndi
Class JndiObjectFactory<T>
java.lang.Object
org.apache.shiro.jndi.JndiLocator
org.apache.shiro.jndi.JndiObjectFactory<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
- Factory<T>
public class JndiObjectFactory<T>
- extends JndiLocator
- implements Factory<T>
A factory implementation intended to be used to look up objects in jndi.
- Since:
- 1.2
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JndiObjectFactory
public JndiObjectFactory()
getInstance
public T getInstance()
- Description copied from interface:
Factory
- Returns an instance of the required type. The implementation determines whether or not a new or cached
instance is created every time this method is called.
- Specified by:
getInstance
in interface Factory<T>
- Returns:
- an instance of the required type.
getResourceName
public String getResourceName()
setResourceName
public void setResourceName(String resourceName)
getRequiredType
public Class<? extends T> getRequiredType()
setRequiredType
public void setRequiredType(Class<? extends T> requiredType)
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.