Package org.apache.activemq.jndi
Class JNDIBaseStorable
java.lang.Object
org.apache.activemq.jndi.JNDIBaseStorable
- All Implemented Interfaces:
Externalizable,Serializable,Referenceable,JNDIStorableInterface
- Direct Known Subclasses:
ActiveMQConnectionFactory,ActiveMQDestination
public abstract class JNDIBaseStorable
extends Object
implements JNDIStorableInterface, Externalizable
Facilitates objects to be stored in JNDI as properties
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidbuildFromProperties(Properties props) Set the properties that will represent the instance in JNDIGet the properties from this instance for storing in JNDIRetrive a Reference for this instance to store in JNDIprotected abstract voidpopulateProperties(Properties props) Initialize the instance from properties stored in JNDIvoidvoidsetProperties(Properties props) set the properties for this instance as retrieved from JNDIvoid
-
Constructor Details
-
JNDIBaseStorable
public JNDIBaseStorable()
-
-
Method Details
-
buildFromProperties
Set the properties that will represent the instance in JNDI- Parameters:
props-
-
populateProperties
Initialize the instance from properties stored in JNDI- Parameters:
props-
-
setProperties
set the properties for this instance as retrieved from JNDI- Specified by:
setPropertiesin interfaceJNDIStorableInterface- Parameters:
props-
-
getProperties
Get the properties from this instance for storing in JNDI- Specified by:
getPropertiesin interfaceJNDIStorableInterface- Returns:
- the properties
-
getReference
Retrive a Reference for this instance to store in JNDI- Specified by:
getReferencein interfaceReferenceable- Returns:
- the built Reference
- Throws:
NamingException- if error on building Reference
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Parameters:
in-- Throws:
IOExceptionClassNotFoundException- See Also:
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Parameters:
out-- Throws:
IOException- See Also:
-