Package org.apache.activemq.artemis.jndi
Class JNDIStorable
java.lang.Object
org.apache.activemq.artemis.jndi.JNDIStorable
- All Implemented Interfaces:
Referenceable
- Direct Known Subclasses:
ActiveMQConnectionFactory,ActiveMQDestination
Facilitates objects to be stored in JNDI as properties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidbuildFromProperties(Properties props) Set the properties that will represent the instance in JNDIRetrieve a Reference for this instance to store in JNDIprotected abstract voidpopulateProperties(Properties props) Initialize the instance from properties stored in JNDIvoidMethod for class's implementing externalizable to delegate to if not custom implementing.voidwriteObject(ObjectOutput out) Method for class's implementing externalizable to delegate to if not custom implementing.
-
Constructor Details
-
JNDIStorable
public JNDIStorable()
-
-
Method Details
-
buildFromProperties
Set the properties that will represent the instance in JNDI- Parameters:
props- The properties to use when building the new isntance.
-
populateProperties
Initialize the instance from properties stored in JNDI- Parameters:
props- The properties to use when initializing the new instance.
-
getReference
Retrieve a Reference for this instance to store in JNDI- Specified by:
getReferencein interfaceReferenceable- Returns:
- the built Reference
- Throws:
NamingException- if error on building Reference
-
readObject
Method for class's implementing externalizable to delegate to if not custom implementing. -
writeObject
Method for class's implementing externalizable to delegate to if not custom implementing.- Throws:
IOException- See Also:
-