org.granite.eclipselink
Class EclipseLinkExternalizer

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

public class EclipseLinkExternalizer
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
EclipseLinkExternalizer()
           
 
Method Summary
 int accept(Class<?> clazz)
           
protected  boolean isEmbeddable(Class<?> clazz)
           
protected  boolean isPropertyIgnored(Field field)
           
protected  boolean isRegularEntity(Class<?> clazz)
           
protected  org.granite.messaging.persistence.AbstractExternalizablePersistentCollection newExternalizableCollection(org.eclipse.persistence.indirection.IndirectContainer value)
           
protected  org.eclipse.persistence.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, isValueIgnored
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EclipseLinkExternalizer

public EclipseLinkExternalizer()
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

isPropertyIgnored

protected boolean isPropertyIgnored(Field field)
Overrides:
isPropertyIgnored in class org.granite.messaging.amf.io.util.externalizer.DefaultExternalizer

newIndirectCollection

protected org.eclipse.persistence.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(org.eclipse.persistence.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)

isEmbeddable

protected boolean isEmbeddable(Class<?> clazz)