public abstract class JNDIBaseStorable extends Object implements JNDIStorableInterface, Externalizable
Constructor and Description |
---|
JNDIBaseStorable() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
buildFromProperties(Properties props)
Set the properties that will represent the instance in JNDI
|
Properties |
getProperties()
Get the properties from this instance for storing in JNDI
|
Reference |
getReference()
Retrive a Reference for this instance to store in JNDI
|
protected abstract void |
populateProperties(Properties props)
Initialize the instance from properties stored in JNDI
|
void |
readExternal(ObjectInput in) |
void |
setProperties(Properties props)
set the properties for this instance as retrieved from JNDI
|
void |
writeExternal(ObjectOutput out) |
public JNDIBaseStorable()
protected abstract void buildFromProperties(Properties props)
props
- protected abstract void populateProperties(Properties props)
props
- public void setProperties(Properties props)
setProperties
in interface JNDIStorableInterface
props
- public Properties getProperties()
getProperties
in interface JNDIStorableInterface
public Reference getReference() throws NamingException
getReference
in interface Referenceable
NamingException
- if error on building Referencepublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
in
- IOException
ClassNotFoundException
Externalizable.readExternal(java.io.ObjectInput)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
out
- IOException
Externalizable.writeExternal(java.io.ObjectOutput)
Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.