com.liferay.portal.kernel.util
Class SimplePojoClp<T>
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
createLocalObject
public T createLocalObject(Object remoteInstance)
throws IllegalAccessException,
InstantiationException
- Throws:
IllegalAccessException
InstantiationException
createRemoteObject
public Object createRemoteObject(T localInstance)
throws IllegalAccessException,
InstantiationException
- Throws:
IllegalAccessException
InstantiationException