|
JBoss Marshalling 1.3.0.CR9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.marshalling.reflect.SerializableClass
public final class SerializableClass

Reflection information about a serializable class. Intended for use by implementations of the Marshalling API.
| Field Summary | |
|---|---|
static SerializableField[] |
NOFIELDS
|
| Method Summary | |
|---|---|
Object |
callNoArgConstructor()
Invoke the public no-arg constructor on this class. |
Object |
callObjectInputConstructor(ObjectInput objectInput)
Invoke the public constructor accepting an ObjectInput. |
void |
callReadObject(Object object,
ObjectInputStream inputStream)
Invoke the readObject() method for an object. |
void |
callReadObjectNoData(Object object)
Invoke the readObjectNoData() method for an object. |
Object |
callReadResolve(Object object)
Invoke the readResolve() method for an object. |
void |
callWriteObject(Object object,
ObjectOutputStream outputStream)
Invoke the writeObject() method for an object. |
Object |
callWriteReplace(Object object)
Invoke the writeReplace() method for an object. |
long |
getEffectiveSerialVersionUID()
Get the effective serial version UID of this class. |
SerializableField[] |
getFields()
Get the serializable fields of this class. |
SerializableField |
getSerializableField(String name,
Class<?> fieldType,
boolean unshared)
Create a synthetic field for this object class. |
Class<?> |
getSubjectClass()
Get the Class of this class. |
boolean |
hasNoArgConstructor()
Determine whether this class has a public no-arg constructor. |
boolean |
hasObjectInputConstructor()
Determine whether this class has a public constructor accepting an ObjectInput. |
boolean |
hasReadObject()
Determine whether this class has a readObject() method. |
boolean |
hasReadObjectNoData()
Determine whether this class has a readObjectNoData() method. |
boolean |
hasReadResolve()
Determine whether this class has a readResolve() method. |
boolean |
hasWriteObject()
Determine whether this class has a writeObject() method. |
boolean |
hasWriteReplace()
Determine whether this class has a writeReplace() method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final SerializableField[] NOFIELDS
| Method Detail |
|---|
public SerializableField[] getFields()
public SerializableField getSerializableField(String name,
Class<?> fieldType,
boolean unshared)
throws ClassNotFoundException
name - the name of the fieldfieldType - the field typeunshared - true if the field should be unshared
ClassNotFoundException - if a class was not found while looking up the subject classpublic boolean hasWriteObject()
writeObject() method.
true if there is a writeObject() method
public void callWriteObject(Object object,
ObjectOutputStream outputStream)
throws IOException
writeObject() method for an object.
object - the object to invoke onoutputStream - the object output stream to pass in
IOException - if an I/O error occurspublic boolean hasReadObject()
readObject() method.
true if there is a readObject() method
public void callReadObject(Object object,
ObjectInputStream inputStream)
throws IOException,
ClassNotFoundException
readObject() method for an object.
object - the object to invoke oninputStream - the object input stream to pass in
IOException - if an I/O error occurs
ClassNotFoundException - if a class was not able to be loadedpublic boolean hasReadObjectNoData()
readObjectNoData() method.
true if there is a readObjectNoData() method
public void callReadObjectNoData(Object object)
throws ObjectStreamException
readObjectNoData() method for an object.
object - the object to invoke on
ObjectStreamException - if an I/O error occurspublic boolean hasWriteReplace()
writeReplace() method.
true if there is a writeReplace() method
public Object callWriteReplace(Object object)
throws ObjectStreamException
writeReplace() method for an object.
object - the object to invoke on
ObjectStreamException - if an I/O error occurspublic boolean hasReadResolve()
readResolve() method.
true if there is a readResolve() method
public Object callReadResolve(Object object)
throws ObjectStreamException
readResolve() method for an object.
object - the object to invoke on
ObjectStreamException - if an I/O error occurspublic boolean hasNoArgConstructor()
true if there is such a constructor
public Object callNoArgConstructor()
throws IOException
IOException - if an I/O error occurspublic boolean hasObjectInputConstructor()
true if there is such a constructor
public Object callObjectInputConstructor(ObjectInput objectInput)
throws IOException
objectInput - the ObjectInput to pass to the constructor
IOException - if an I/O error occurspublic long getEffectiveSerialVersionUID()
public Class<?> getSubjectClass()
throws ClassNotFoundException
Class of this class.
ClassNotFoundException - if the class was unloaded
|
JBoss Marshalling 1.3.0.CR9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||