|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activemq.jndi.JNDIReferenceFactory
public class JNDIReferenceFactory
Converts objects implementing JNDIStorable into a property fields so they can be stored and regenerated from JNDI
Constructor Summary | |
---|---|
JNDIReferenceFactory()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JNDIReferenceFactory()
Method Detail |
---|
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 JNDI
Exception
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |