java.lang.Object
org.activemq.jndi.JNDIReferenceFactory
- All Implemented Interfaces:
- javax.naming.spi.ObjectFactory
- public class JNDIReferenceFactory
- extends java.lang.Object
- implements javax.naming.spi.ObjectFactory
Converts objects implementing JNDIStorable into a property fields so they can
be stored and regenerated from JNDI
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
static org.apache.commons.logging.Log log
JNDIReferenceFactory
public JNDIReferenceFactory()
getObjectInstance
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
- This will be called by a JNDIprovider when a Reference is retrieved from
a JNDI store - and generates the orignal instance
- Specified by:
getObjectInstance in interface javax.naming.spi.ObjectFactory
createReference
public static javax.naming.Reference createReference(java.lang.String instanceClassName,
JNDIStorableInterface po)
throws javax.naming.NamingException
- Create a Reference instance from a JNDIStorable object
loadClass
public static java.lang.Class loadClass(java.lang.Object thisObj,
java.lang.String className)
throws java.lang.ClassNotFoundException
- Retrieve the class loader for a named class