public class JNDIReferenceFactory
extends java.lang.Object
implements javax.naming.spi.ObjectFactory
| Constructor and Description |
|---|
JNDIReferenceFactory() |
| Modifier and Type | Method and Description |
|---|---|
static javax.naming.Reference |
createReference(java.lang.String instanceClassName,
JNDIStorableInterface po)
Create a Reference instance from a JNDIStorable object
|
java.lang.Object |
getObjectInstance(java.lang.Object object,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable environment)
This will be called by a JNDIprovider when a Reference is retrieved from
a JNDI store - and generates the orignal instance
|
static java.lang.Class |
loadClass(java.lang.Object thisObj,
java.lang.String className)
Retrieve the class loader for a named class
|
public java.lang.Object getObjectInstance(java.lang.Object object,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable environment)
throws java.lang.Exception
getObjectInstance in interface javax.naming.spi.ObjectFactoryobject - the Reference objectname - the JNDI namenameCtx - the contextenvironment - the environment settings used by JNDIjava.lang.Exception - if building the instance from Reference fails (usually
class not found)public static javax.naming.Reference createReference(java.lang.String instanceClassName,
JNDIStorableInterface po)
throws javax.naming.NamingException
instanceClassName - po - javax.naming.NamingExceptionpublic static java.lang.Class loadClass(java.lang.Object thisObj,
java.lang.String className)
throws java.lang.ClassNotFoundException
thisObj - className - java.lang.ClassNotFoundExceptionCopyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.