Examples of SerializableEntityObjectReference


Examples of com.github.jmkgreen.morphia.mapping.lazy.proxy.SerializableEntityObjectReference

    }

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

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

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

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
Copyright © 2018 www.massapi.com. 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.