Package org.mongodb.morphia.mapping.lazy.proxy

Examples of org.mongodb.morphia.mapping.lazy.proxy.SerializableEntityObjectReference


public class CGLibLazyProxyFactory implements LazyProxyFactory {
  private final CglibProxyFactory factory = new CglibProxyFactory();

  public <T> T createProxy(final Class<T> targetClass, final Key<T> key, final DatastoreProvider p) {

    final SerializableEntityObjectReference objectReference = new SerializableEntityObjectReference(targetClass, p, key);

    final T backend = (T) new NonFinalizingHotSwappingInvoker(new Class[] {targetClass, Serializable.class}, factory, objectReference,
      DelegationMode.SIGNATURE).proxy();

    return Dispatching.proxy(targetClass, new Class[] {ProxiedEntityReference.class, targetClass, Serializable.class}).with(objectReference,
View Full Code Here

TOP

Related Classes of org.mongodb.morphia.mapping.lazy.proxy.SerializableEntityObjectReference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.