Liferay 6.2-ce-ga5

com.liferay.portal.kernel.util
Class SimplePojoClp<T>

java.lang.Object
  extended by com.liferay.portal.kernel.util.SimplePojoClp<T>

public class SimplePojoClp<T>
extends Object

A class loader proxy able to serialize simple POJOs between two class loaders. It only works for simple POJOs following the Java Beans semantics. The local and remote classes do not have to match or even be derived from each other as long as their properties match. Any bean properties that the source bean exposes but the target bean does not will silently be ignored.


Constructor Summary
SimplePojoClp(Class<? extends T> localImplementationClass, ClassLoader remoteClassLoader)
           
SimplePojoClp(Class<? extends T> localImplementationClass, ClassLoader remoteClassLoader, String remoteImplementationClassName)
           
 
Method Summary
 T createLocalObject(Object remoteInstance)
           
 Object createRemoteObject(T localInstance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePojoClp

public SimplePojoClp(Class<? extends T> localImplementationClass,
                     ClassLoader remoteClassLoader)
              throws ClassNotFoundException
Throws:
ClassNotFoundException

SimplePojoClp

public SimplePojoClp(Class<? extends T> localImplementationClass,
                     ClassLoader remoteClassLoader,
                     String remoteImplementationClassName)
              throws ClassNotFoundException
Throws:
ClassNotFoundException
Method Detail

createLocalObject

public T createLocalObject(Object remoteInstance)
                    throws IllegalAccessException,
                           InstantiationException
Throws:
IllegalAccessException
InstantiationException

createRemoteObject

public Object createRemoteObject(T localInstance)
                          throws IllegalAccessException,
                                 InstantiationException
Throws:
IllegalAccessException
InstantiationException

Liferay 6.2-ce-ga5