Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.activemq.jndi
Class JNDIBaseStorable  view JNDIBaseStorable download JNDIBaseStorable.java

java.lang.Object
  extended byorg.activemq.jndi.JNDIBaseStorable
All Implemented Interfaces:
JNDIStorableInterface, javax.naming.Referenceable

public abstract class JNDIBaseStorable
extends java.lang.Object
implements JNDIStorableInterface

Faciliates objects to be stored in JNDI as properties


Field Summary
private  java.util.Properties properties
           
 
Constructor Summary
JNDIBaseStorable()
           
 
Method Summary
protected abstract  void buildFromProperties(java.util.Properties props)
          Set the properties that will represent the instance in JNDI
 java.util.Properties getProperties()
          Get the properties from this instance for storing in JNDI
 javax.naming.Reference getReference()
          Retrive a Reference for this instance to store in JNDI
protected abstract  void populateProperties(java.util.Properties props)
          Initialize the instance from properties stored in JNDI
 void setProperties(java.util.Properties props)
          set the properties for this instance as retrieved from JNDI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

private java.util.Properties properties
Constructor Detail

JNDIBaseStorable

public JNDIBaseStorable()
Method Detail

buildFromProperties

protected abstract void buildFromProperties(java.util.Properties props)
Set the properties that will represent the instance in JNDI


populateProperties

protected abstract void populateProperties(java.util.Properties props)
Initialize the instance from properties stored in JNDI


setProperties

public void setProperties(java.util.Properties props)
set the properties for this instance as retrieved from JNDI

Specified by:
setProperties in interface JNDIStorableInterface

getProperties

public java.util.Properties getProperties()
Get the properties from this instance for storing in JNDI

Specified by:
getProperties in interface JNDIStorableInterface

getReference

public javax.naming.Reference getReference()
                                    throws javax.naming.NamingException
Retrive a Reference for this instance to store in JNDI

Specified by:
getReference in interface javax.naming.Referenceable