org.apache.naming.factory

Class ResourceLinkFactory

Implemented Interfaces:
ObjectFactory

public class ResourceLinkFactory
extends java.lang.Object
implements ObjectFactory

Object factory for resource links.

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

Author:
Remy Maucherat

Method Summary

Object
getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment)
Create a new DataSource instance.
static void
setGlobalContext(Context newGlobalContext)
Set the global context (note: can only be used once).

Method Details

getObjectInstance

public Object getObjectInstance(Object obj,
                                Name name,
                                Context nameCtx,
                                Hashtable environment)
            throws NamingException
Create a new DataSource instance.

Parameters:
obj - The reference object describing the DataSource


setGlobalContext

public static void setGlobalContext(Context newGlobalContext)
Set the global context (note: can only be used once).

Parameters:
newGlobalContext - new global context value


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