org.granite.toplink
Class TopLinkExternalizer

java.lang.Object
  extended by org.granite.messaging.amf.io.util.externalizer.DefaultExternalizer
      extended by org.granite.toplink.TopLinkExternalizer
All Implemented Interfaces:
org.granite.messaging.amf.io.util.externalizer.Externalizer

public class TopLinkExternalizer
extends org.granite.messaging.amf.io.util.externalizer.DefaultExternalizer

Author:
William DRAI

Field Summary
 
Fields inherited from class org.granite.messaging.amf.io.util.externalizer.DefaultExternalizer
BYTES_0, constructors, dynamicClass, orderedFields, orderedSetterFields
 
Constructor Summary
TopLinkExternalizer()
           
 
Method Summary
 int accept(Class<?> clazz)
           
protected  boolean isRegularEntity(Class<?> clazz)
           
protected  org.granite.messaging.persistence.AbstractExternalizablePersistentCollection newExternalizableCollection(oracle.toplink.essentials.indirection.IndirectContainer value)
           
protected  oracle.toplink.essentials.indirection.IndirectContainer newIndirectCollection(org.granite.messaging.persistence.AbstractExternalizablePersistentCollection value, Type target)
           
 Object newInstance(String type, ObjectInput in)
           
 void readExternal(Object o, ObjectInput in)
           
 void writeExternal(Object o, ObjectOutput out)
           
 
Methods inherited from class org.granite.messaging.amf.io.util.externalizer.DefaultExternalizer
configure, findDefaultConstructor, findOrderedFields, findOrderedFields, isPropertyIgnored, isValueIgnored
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopLinkExternalizer

public TopLinkExternalizer()
Method Detail

newInstance

public Object newInstance(String type,
                          ObjectInput in)
                   throws IOException,
                          ClassNotFoundException,
                          InstantiationException,
                          InvocationTargetException,
                          IllegalAccessException
Specified by:
newInstance in interface org.granite.messaging.amf.io.util.externalizer.Externalizer
Overrides:
newInstance in class org.granite.messaging.amf.io.util.externalizer.DefaultExternalizer
Throws:
IOException
ClassNotFoundException
InstantiationException
InvocationTargetException
IllegalAccessException

readExternal

public void readExternal(Object o,
                         ObjectInput in)
                  throws IOException,
                         ClassNotFoundException,
                         IllegalAccessException
Specified by:
readExternal in interface org.granite.messaging.amf.io.util.externalizer.Externalizer
Overrides:
readExternal in class org.granite.messaging.amf.io.util.externalizer.DefaultExternalizer
Throws:
IOException
ClassNotFoundException
IllegalAccessException

newIndirectCollection

protected oracle.toplink.essentials.indirection.IndirectContainer newIndirectCollection(org.granite.messaging.persistence.AbstractExternalizablePersistentCollection value,
                                                                                        Type target)

writeExternal

public void writeExternal(Object o,
                          ObjectOutput out)
                   throws IOException,
                          IllegalAccessException
Specified by:
writeExternal in interface org.granite.messaging.amf.io.util.externalizer.Externalizer
Overrides:
writeExternal in class org.granite.messaging.amf.io.util.externalizer.DefaultExternalizer
Throws:
IOException
IllegalAccessException

newExternalizableCollection

protected org.granite.messaging.persistence.AbstractExternalizablePersistentCollection newExternalizableCollection(oracle.toplink.essentials.indirection.IndirectContainer value)

accept

public int accept(Class<?> clazz)
Specified by:
accept in interface org.granite.messaging.amf.io.util.externalizer.Externalizer
Overrides:
accept in class org.granite.messaging.amf.io.util.externalizer.DefaultExternalizer

isRegularEntity

protected boolean isRegularEntity(Class<?> clazz)