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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JNDIBaseStorable()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
buildFromProperties(Properties props)
Set the properties that will represent the instance in JNDIProperties
getProperties()
Get the properties from this instance for storing in JNDIReference
getReference()
Retrive a Reference for this instance to store in JNDIprotected abstract void
populateProperties(Properties props)
Initialize the instance from properties stored in JNDIvoid
readExternal(ObjectInput in)
void
setProperties(Properties props)
set the properties for this instance as retrieved from JNDIvoid
writeExternal(ObjectOutput out)
-
-
-
Method Detail
-
buildFromProperties
protected abstract void buildFromProperties(Properties props)
Set the properties that will represent the instance in JNDI- Parameters:
props
-
-
populateProperties
protected abstract void populateProperties(Properties props)
Initialize the instance from properties stored in JNDI- Parameters:
props
-
-
setProperties
public void setProperties(Properties props)
set the properties for this instance as retrieved from JNDI- Specified by:
setProperties
in interfaceJNDIStorableInterface
- Parameters:
props
-
-
getProperties
public Properties getProperties()
Get the properties from this instance for storing in JNDI- Specified by:
getProperties
in interfaceJNDIStorableInterface
- Returns:
- the properties
-
getReference
public Reference getReference() throws NamingException
Retrive a Reference for this instance to store in JNDI- Specified by:
getReference
in interfaceReferenceable
- Returns:
- the built Reference
- Throws:
NamingException
- if error on building Reference
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Parameters:
in
-- Throws:
IOException
ClassNotFoundException
- See Also:
Externalizable.readExternal(java.io.ObjectInput)
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Parameters:
out
-- Throws:
IOException
- See Also:
Externalizable.writeExternal(java.io.ObjectOutput)
-
-