Class ResourceLinkFactory

java.lang.Object
org.apache.naming.factory.ResourceLinkFactory
All Implemented Interfaces:
ObjectFactory
Direct Known Subclasses:
DataSourceLinkFactory

public class ResourceLinkFactory extends Object implements ObjectFactory

Object factory for resource links.

Author:
Remy Maucherat
  • Field Details

  • Constructor Details

    • ResourceLinkFactory

      public ResourceLinkFactory()
  • Method Details

    • setGlobalContext

      public static void setGlobalContext(Context newGlobalContext)
      Set the global context (note: can only be used once).
      Parameters:
      newGlobalContext - new global context value
    • registerGlobalResourceAccess

      public static void registerGlobalResourceAccess(Context globalContext, String localName, String globalName)
    • deregisterGlobalResourceAccess

      public static void deregisterGlobalResourceAccess(Context globalContext, String localName)
    • deregisterGlobalResourceAccess

      public static void deregisterGlobalResourceAccess(Context globalContext)
    • getObjectInstance

      public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment) throws NamingException
      Create a new resource instance.
      Specified by:
      getObjectInstance in interface ObjectFactory
      Parameters:
      name - the bound name
      nameCtx - unused
      environment - unused
      Returns:
      the object instance
      Throws:
      NamingException - if an error occur creating the instance