org.codehaus.wadi.core.motable
Class SimpleMotable
java.lang.Object
org.codehaus.wadi.core.eviction.SimpleEvictable
org.codehaus.wadi.core.motable.AbstractMotable
org.codehaus.wadi.core.motable.SimpleMotable
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, Evictable, Motable
public class SimpleMotable
- extends AbstractMotable
A very Simple implementation of Motable, with the Bytes field represented as a byte[]
- Version:
- $Revision: 2293 $
- Author:
- Jules Gosnell
- See Also:
- Serialized Form
Field Summary |
protected byte[] |
_bytes
|
Methods inherited from class org.codehaus.wadi.core.motable.AbstractMotable |
copy, destroy, destroyForMotion, getAbstractMotableMemento, getName, getReadWriteLock, init, initExisting, isNew, mote, newMemento, newReadWriteLock, onDeserialization, rehydrate, restore |
Methods inherited from class org.codehaus.wadi.core.eviction.SimpleEvictable |
copy, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getTimedOut, getTimeToLive, init, mote, onSerialization, setLastAccessedTime, setMaxInactiveInterval |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_bytes
protected byte[] _bytes
SimpleMotable
public SimpleMotable()
getBodyAsByteArray
public byte[] getBodyAsByteArray()
setBodyAsByteArray
public void setBodyAsByteArray(byte[] bytes)
readExternal
public void readExternal(java.io.ObjectInput oi)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal
in interface java.io.Externalizable
- Overrides:
readExternal
in class SimpleEvictable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
writeExternal
public void writeExternal(java.io.ObjectOutput oo)
throws java.io.IOException
- Specified by:
writeExternal
in interface java.io.Externalizable
- Overrides:
writeExternal
in class SimpleEvictable
- Throws:
java.io.IOException
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in class java.lang.Object
Copyright © 2008. All Rights Reserved.