public class JNDIReferenceFactory extends Object implements ObjectFactory
Constructor and Description |
---|
JNDIReferenceFactory() |
Modifier and Type | Method and Description |
---|---|
static Reference |
createReference(String instanceClassName,
JNDIStorableInterface po)
Create a Reference instance from a JNDIStorable object
|
Object |
getObjectInstance(Object object,
Name name,
Context nameCtx,
Hashtable environment)
This will be called by a JNDIprovider when a Reference is retrieved from
a JNDI store - and generates the orignal instance
|
static Class |
loadClass(Object thisObj,
String className)
Retrieve the class loader for a named class
|
public JNDIReferenceFactory()
public Object getObjectInstance(Object object, Name name, Context nameCtx, Hashtable environment) throws Exception
getObjectInstance
in interface ObjectFactory
object
- the Reference objectname
- the JNDI namenameCtx
- the contextenvironment
- the environment settings used by JNDIException
- if building the instance from Reference fails (usually
class not found)public static Reference createReference(String instanceClassName, JNDIStorableInterface po) throws NamingException
instanceClassName
- po
- NamingException
public static Class loadClass(Object thisObj, String className) throws ClassNotFoundException
thisObj
- className
- ClassNotFoundException
Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.