Package org.apache.openjpa.util

Examples of org.apache.openjpa.util.ClassResolver


        final ClassLoader tmpLoader = (ClassLoader) AccessController
            .doPrivileged(J2DoPrivHelper
                .newTemporaryClassLoaderAction((ClassLoader) AccessController
                    .doPrivileged(J2DoPrivHelper.getContextClassLoaderAction())
                    ));
        conf.setClassResolver(new ClassResolver() {
            public ClassLoader getClassLoader(Class context, ClassLoader env) {
                return tmpLoader;
            }
        });
        conf.setReadOnly(true);
View Full Code Here


        private ClassTransformerImpl(ConfigurationProvider cp, String props,
            final ClassLoader tmpLoader, OpenJPAConfiguration conf) {
            cp.setInto(conf);
            // use the temporary loader for everything
            conf.setClassResolver(new ClassResolver() {
                public ClassLoader getClassLoader(Class<?> context, ClassLoader env) {
                    return tmpLoader;
                }
            });
            conf.setReadOnly(Configuration.INIT_STATE_FREEZING);
View Full Code Here

            final ClassLoader tmpLoader) {
            // create an independent conf for enhancement
            OpenJPAConfiguration conf = new OpenJPAConfigurationImpl();
            cp.setInto(conf);
            // use the tmp loader for everything
            conf.setClassResolver(new ClassResolver() {
                public ClassLoader getClassLoader(Class context,
                    ClassLoader env) {
                    return tmpLoader;
                }
            });
View Full Code Here

TOP

Related Classes of org.apache.openjpa.util.ClassResolver

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.