Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


oracle.eclipselink.coherence.integrated.cache
Class WrapperPofSerializer

java.lang.Object
  extended by oracle.eclipselink.coherence.integrated.cache.WrapperPofSerializer

All Implemented Interfaces:
com.tangosol.io.ClassLoaderAware, com.tangosol.io.pof.PofSerializer

public class WrapperPofSerializer
extends java.lang.Object
implements com.tangosol.io.pof.PofSerializer, com.tangosol.io.ClassLoaderAware

Purpose: This class is used to provide serialization support for the Entity Wrappers within Coherence when wish to access the Coherence Caches directly. This includes users who have custom Value Extractors. Users who have custom POF serializers will need to create the pof configuration xml for their types. And set the serializer to be the WrapperPofSerializer instead.

Since:
TopLink 11g (11.1.1.1.0)
Author:
gyorke

Field Summary
protected  java.util.Map<java.lang.String,java.lang.Class> classes
           
protected  boolean isNotEclipseLink
           
protected  java.lang.ref.WeakReference<java.lang.ClassLoader> loaderReference
           

 

Constructor Summary
WrapperPofSerializer()
           
WrapperPofSerializer(java.lang.ClassLoader loader)
           

 

Method Summary
 java.lang.Object deserialize(com.tangosol.io.pof.PofReader pofreader)
           
 java.lang.ClassLoader getContextClassLoader()
           
 boolean isNotEclipseLink()
           
 void serialize(com.tangosol.io.pof.PofWriter pofwriter, java.lang.Object obj)
           
 void setContextClassLoader(java.lang.ClassLoader loader)
           
 void setNotEclipseLink(boolean isNotEclipseLink)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

loaderReference

protected java.lang.ref.WeakReference<java.lang.ClassLoader> loaderReference

classes

protected java.util.Map<java.lang.String,java.lang.Class> classes

isNotEclipseLink

protected boolean isNotEclipseLink

Constructor Detail

WrapperPofSerializer

public WrapperPofSerializer()

WrapperPofSerializer

public WrapperPofSerializer(java.lang.ClassLoader loader)

Method Detail

deserialize

public java.lang.Object deserialize(com.tangosol.io.pof.PofReader pofreader)
                             throws java.io.IOException
Specified by:
deserialize in interface com.tangosol.io.pof.PofSerializer
Throws:
java.io.IOException

serialize

public void serialize(com.tangosol.io.pof.PofWriter pofwriter,
                      java.lang.Object obj)
               throws java.io.IOException
Specified by:
serialize in interface com.tangosol.io.pof.PofSerializer
Throws:
java.io.IOException

getContextClassLoader

public java.lang.ClassLoader getContextClassLoader()
Specified by:
getContextClassLoader in interface com.tangosol.io.ClassLoaderAware

setContextClassLoader

public void setContextClassLoader(java.lang.ClassLoader loader)
Specified by:
setContextClassLoader in interface com.tangosol.io.ClassLoaderAware

isNotEclipseLink

public boolean isNotEclipseLink()
Returns:
the isNotEclipseLink

setNotEclipseLink

public void setNotEclipseLink(boolean isNotEclipseLink)
Parameters:
isNotEclipseLink - the isNotEclipseLink to set

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.