public abstract class JNDIStorable extends Object implements Referenceable
Constructor and Description |
---|
JNDIStorable() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
buildFromProperties(Properties props)
Set the properties that will represent the instance in JNDI
|
Reference |
getReference()
Retrieve a Reference for this instance to store in JNDI
|
protected abstract void |
populateProperties(Properties props)
Initialize the instance from properties stored in JNDI
|
void |
readObject(ObjectInput in)
Method for class's implementing externalizable to delegate to if not custom implementing.
|
void |
writeObject(ObjectOutput out)
Method for class's implementing externalizable to delegate to if not custom implementing.
|
protected abstract void buildFromProperties(Properties props)
props
- The properties to use when building the new isntance.protected abstract void populateProperties(Properties props)
props
- The properties to use when initializing the new instance.public Reference getReference() throws NamingException
getReference
in interface Referenceable
NamingException
- if error on building Referencepublic void readObject(ObjectInput in) throws IOException, ClassNotFoundException
in
- IOException
ClassNotFoundException
Externalizable.readExternal(java.io.ObjectInput)
public void writeObject(ObjectOutput out) throws IOException
out
- IOException
Externalizable.writeExternal(java.io.ObjectOutput)
Copyright © 2021 JBoss by Red Hat. All rights reserved.