Package org.apache.qpid.jms.jndi
Class JNDIStorable
java.lang.Object
org.apache.qpid.jms.jndi.JNDIStorable
- All Implemented Interfaces:
Externalizable,Serializable,Referenceable
- Direct Known Subclasses:
JmsConnectionFactory,JmsDestination
Facilitates objects to be stored in JNDI as properties
- Since:
- 1.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildFromProperties(Map<String, String> props) Set the properties that will represent the instance in JNDIGet the properties from this instance for storing in JNDIprotected StringRetrieve a Reference for this instance to store in JNDIprotected abstract voidpopulateProperties(Map<String, String> props) Initialize the instance from properties stored in JNDIvoidsetProperties(Map<String, String> props) set the properties for this instance as retrieved from JNDIvoid
-
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.- Returns:
- a new, unmodifiable, map containing any unused properties, or empty if none were.
-
populateProperties
Initialize the instance from properties stored in JNDI- Parameters:
props- The properties to use when initializing the new instance.
-
setProperties
set the properties for this instance as retrieved from JNDI- Parameters:
props- The properties to apply to this instance.- Returns:
- a new, unmodifiable, map containing any unused properties, or empty if none were.
-
getProperties
Get the properties from this instance for storing in JNDI- Returns:
- the properties
-
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
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException- See Also:
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException- See Also:
-
getProperty
-