Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.catalina.users
Class MemoryUserDatabaseFactory  view MemoryUserDatabaseFactory download MemoryUserDatabaseFactory.java

java.lang.Object
  extended byorg.apache.catalina.users.MemoryUserDatabaseFactory
All Implemented Interfaces:
javax.naming.spi.ObjectFactory

public class MemoryUserDatabaseFactory
extends java.lang.Object
implements javax.naming.spi.ObjectFactory

JNDI object creation factory for MemoryUserDatabase instances. This makes it convenient to configure a user database in the global JNDI resources associated with this Catalina instance, and then link to that resource for web applications that administer the contents of the user database.

The MemoryUserDatabase instance is configured based on the following parameter values:

Since:
4.1
Version:
$Revision: 304046 $ $Date: 2005-08-04 09:06:56 -0400 (Thu, 04 Aug 2005) $

Constructor Summary
MemoryUserDatabaseFactory()
           
 
Method Summary
 java.lang.Object getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable environment)
          Create and return a new MemoryUserDatabase instance that has been configured according to the properties of the specified Reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryUserDatabaseFactory

public MemoryUserDatabaseFactory()
Method Detail

getObjectInstance

public java.lang.Object getObjectInstance(java.lang.Object obj,
                                          javax.naming.Name name,
                                          javax.naming.Context nameCtx,
                                          java.util.Hashtable environment)
                                   throws java.lang.Exception

Create and return a new MemoryUserDatabase instance that has been configured according to the properties of the specified Reference. If you instance can be created, return null instead.

Specified by:
getObjectInstance in interface javax.naming.spi.ObjectFactory