Package com.github.jmkgreen.morphia.mapping.lazy.proxy

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


    public <T extends Collection> T createListProxy(final T listToProxy,
                                                    final Class referenceObjClass, final boolean ignoreMissing,
                                                    final DatastoreProvider p) {
        Class<? extends Collection> targetClass = listToProxy.getClass();
        SerializableCollectionObjectReference objectReference = new SerializableCollectionObjectReference(
                listToProxy, referenceObjClass, ignoreMissing, p);

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

TOP

Related Classes of com.github.jmkgreen.morphia.mapping.lazy.proxy.SerializableCollectionObjectReference

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.