org.apache.openejb.util.io
Class ClassDescriptor

java.lang.Object
  extended by org.apache.openejb.util.io.ClassDescriptor
All Implemented Interfaces:
ObjectStreamConstants, Serializable

public class ClassDescriptor
extends Object
implements Serializable, ObjectStreamConstants

See Also:
Serialized Form

Field Summary
protected  FieldDescriptor[] fields
           
protected  int flags
           
static FieldDescriptor[] NO_FIELDS
           
 
Fields inherited from interface java.io.ObjectStreamConstants
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, STREAM_MAGIC, STREAM_VERSION, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_ENUM, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING
 
Constructor Summary
protected ClassDescriptor(Class clazz, ClassDescriptor superdesc, boolean serializable, boolean externalizable)
           
 
Method Summary
 Class forClass()
           
 FieldDescriptor[] getFields()
           
 String getName()
           
 Method getReadObjectMethod()
           
 long getSerialVersionUID()
           
static StringBuffer getSignature(Class clazz)
           
static StringBuffer getSignature(Class clazz, StringBuffer buf)
           
protected  ClassDescriptor getSuperclass()
           
 Method getWriteObjectMethod()
           
 boolean hasReadObjectMethod()
           
 void hasReadObjectMethod(boolean b)
           
 boolean hasWriteObjectMethod()
           
 void hasWriteObjectMethod(boolean b)
           
protected  boolean isExternalizable()
           
protected  boolean isNonSerializable()
           
protected  boolean isSerializable()
           
static ClassDescriptor lookup(Class clazz)
           
 void setFields(FieldDescriptor[] fields)
           
protected  void setReadObjectMethod(Method method)
           
protected  void setSerialVersionUID(long suid)
           
protected  void setSuperclass(ClassDescriptor s)
           
protected  void setWriteObjectMethod(Method method)
           
 String toString()
           
protected  void writeClassInfo(ObjectOutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

flags

protected int flags

NO_FIELDS

public static final FieldDescriptor[] NO_FIELDS

fields

protected FieldDescriptor[] fields
Constructor Detail

ClassDescriptor

protected ClassDescriptor(Class clazz,
                          ClassDescriptor superdesc,
                          boolean serializable,
                          boolean externalizable)
Method Detail

writeClassInfo

protected void writeClassInfo(ObjectOutputStream out)
                       throws IOException
Throws:
IOException

isSerializable

protected boolean isSerializable()

isExternalizable

protected boolean isExternalizable()

isNonSerializable

protected boolean isNonSerializable()

getFields

public FieldDescriptor[] getFields()

setFields

public void setFields(FieldDescriptor[] fields)

hasWriteObjectMethod

public boolean hasWriteObjectMethod()

hasWriteObjectMethod

public void hasWriteObjectMethod(boolean b)

getWriteObjectMethod

public Method getWriteObjectMethod()

setWriteObjectMethod

protected void setWriteObjectMethod(Method method)

hasReadObjectMethod

public boolean hasReadObjectMethod()

hasReadObjectMethod

public void hasReadObjectMethod(boolean b)

getReadObjectMethod

public Method getReadObjectMethod()

setReadObjectMethod

protected void setReadObjectMethod(Method method)

getSerialVersionUID

public long getSerialVersionUID()

setSerialVersionUID

protected void setSerialVersionUID(long suid)

getName

public String getName()

forClass

public Class forClass()

getSuperclass

protected ClassDescriptor getSuperclass()

setSuperclass

protected void setSuperclass(ClassDescriptor s)

toString

public String toString()
Overrides:
toString in class Object

getSignature

public static StringBuffer getSignature(Class clazz)

getSignature

public static StringBuffer getSignature(Class clazz,
                                        StringBuffer buf)

lookup

public static ClassDescriptor lookup(Class clazz)


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.