org.apache.shiro.jndi
Class JndiObjectFactory<T>

java.lang.Object
  extended by org.apache.shiro.jndi.JndiLocator
      extended by 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

Field Summary
 
Fields inherited from class org.apache.shiro.jndi.JndiLocator
CONTAINER_PREFIX
 
Constructor Summary
JndiObjectFactory()
           
 
Method Summary
 T getInstance()
          Returns an instance of the required type.
 Class<? extends T> getRequiredType()
           
 String getResourceName()
           
 void setRequiredType(Class<? extends T> requiredType)
           
 void setResourceName(String resourceName)
           
 
Methods inherited from class org.apache.shiro.jndi.JndiLocator
convertJndiName, getJndiEnvironment, getJndiTemplate, isResourceRef, lookup, lookup, setJndiEnvironment, setJndiTemplate, setResourceRef
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JndiObjectFactory

public JndiObjectFactory()
Method Detail

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.