|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.aop.util.MarshalledValue
public class MarshalledValue
A simple replacement for the RMI MarshalledObject that uses the thread context class loader for resolving classes and proxies. This currently does not support class annotations and dynamic class loading.
| Constructor Summary | |
|---|---|
MarshalledValue()
Exposed for externalization. |
|
MarshalledValue(Object obj)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Compares obj with this instance for equality. |
Object |
get()
|
int |
hashCode()
Return a hash code for the serialized form of the value. |
void |
readExternal(ObjectInput in)
The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
int |
size()
Returns the length of this value's serialized form. |
byte[] |
toByteArray()
Returns the serialized form of this value. |
void |
writeExternal(ObjectOutput out)
The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MarshalledValue()
public MarshalledValue(Object obj)
throws IOException
IOException| Method Detail |
|---|
public Object get()
throws IOException,
ClassNotFoundException
IOException
ClassNotFoundExceptionpublic byte[] toByteArray()
public int size()
toByteArray()public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
obj with this instance for equality.
Returns true if and only if obj is also a marshalled value,
whose value is the same as the one contained in this instance.
equals in class Objectobj - the object to be compared for equality with this instance
true if obj is considered equal to this instance
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface Externalizablein - the stream to read data from in order to restore the object
IOException - if I/O errors occur
ClassNotFoundException - If the class for an object being
restored cannot be found.
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface Externalizableout - the stream to write the object to
IOException - Includes any I/O exceptions that may occur
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||