org.apache.catalina.users

Class MemoryUserDatabaseFactory

Implemented Interfaces:
ObjectFactory

public class MemoryUserDatabaseFactory
extends java.lang.Object
implements 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:

Version:
$Revision: 1.3 $ $Date: 2004/02/27 14:58:50 $

Author:
Craig R. McClanahan

Since:
4.1

Method Summary

Object
getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment)
Create and return a new MemoryUserDatabase instance that has been configured according to the properties of the specified Reference.

Method Details

getObjectInstance

public Object getObjectInstance(Object obj,
                                Name name,
                                Context nameCtx,
                                Hashtable environment)
            throws 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.

Parameters:
obj - The possibly null object containing location or reference information that can be used in creating an object
name - The name of this object relative to nameCtx
nameCtx - The context relative to which the name parameter is specified, or null if name is relative to the default initial context
environment - The possibly null environment that is used in creating this object


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.