org.apache.naming.factory
Class ResourceLinkFactory

java.lang.Object
  extended byorg.apache.naming.factory.ResourceLinkFactory
All Implemented Interfaces:
javax.naming.spi.ObjectFactory

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

Object factory for resource links.

Version:
$Revision: 123468 $ $Date: 2003/10/13 08:15:11 $
Author:
Remy Maucherat

Constructor Summary
ResourceLinkFactory()
           
 
Method Summary
 java.lang.Object getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable environment)
          Create a new ResourceLink instance.
static void setGlobalContext(javax.naming.Context newGlobalContext)
          Set the global context (note: can only be used once).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLinkFactory

public ResourceLinkFactory()
Method Detail

setGlobalContext

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

Parameters:
newGlobalContext - new global context value

getObjectInstance

public java.lang.Object getObjectInstance(java.lang.Object obj,
                                          javax.naming.Name name,
                                          javax.naming.Context nameCtx,
                                          java.util.Hashtable environment)
                                   throws javax.naming.NamingException
Create a new ResourceLink instance.

Specified by:
getObjectInstance in interface javax.naming.spi.ObjectFactory
Parameters:
obj - The reference object describing the ResourceLink
name - The name of this object relative to nameCtx, or null if no name is specified.
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 the object.
Returns:
The object created; null if an instance cannot be created.
Throws:
javax.naming.NamingException - if a NamingException occurs