Package org.gatein.common.classloader

Examples of org.gatein.common.classloader.DelegatingClassLoader


        ClassLoader infinispanCl = EmbeddedCacheManager.class.getClassLoader();
        ClassLoader portalCl = Thread.currentThread().getContextClassLoader();

        // Infinispan classloader is first delegate, so in AS7 environment, infinispan is able to see
        // jgroups3 classes with bigger priority than jgroups2 classes
        ClassLoader delegating = new DelegatingClassLoader(infinispanCl, portalCl);

        try {
            // Set delegating classloader as tccl
            Thread.currentThread().setContextClassLoader(delegating);
View Full Code Here


            public ClassLoader run() {
                return Thread.currentThread().getContextClassLoader();
            }
        });

        return new DelegatingClassLoader(tccl, GroovyShell.class.getClassLoader());
    }
View Full Code Here

        });

        try {
            SecurityHelper.doPrivilegedAction(new PrivilegedAction<Void>() {
                public Void run() {
                    DelegatingClassLoader cl = new DelegatingClassLoader(old,
                            org.picketlink.idm.api.IdentitySessionFactory.class.getClassLoader());
                    Thread.currentThread().setContextClassLoader(cl);
                    return null;
                }
            });
View Full Code Here

        boolean enabled = Boolean.parseBoolean(enabledPar);

        if (enabled) {
            ClassLoader tccl = Thread.currentThread().getContextClassLoader();
            ClassLoader oauth = OAuthProviderType.class.getClassLoader();
            ClassLoader delegating = new DelegatingClassLoader(tccl, oauth);
            Class<OAuthProviderProcessor<T>> processorClass = (Class<OAuthProviderProcessor<T>>)delegating.loadClass(oauthProviderProcessorClass);
            OAuthProviderProcessor<T> oauthProviderProcessor = containerContext.getContainer().getComponentInstanceOfType(processorClass);

            OAuthPrincipalProcessor principalProcessor = null;
            Class<OAuthPrincipalProcessor> principalProcessorClass = (Class<OAuthPrincipalProcessor>) (principalProcessorClassName != null ? delegating
                    .loadClass(principalProcessorClassName) : DefaultPrincipalProcessor.class);
            principalProcessor = containerContext.getContainer().getComponentInstanceOfType(principalProcessorClass);
            if (principalProcessor == null) {
                principalProcessor = principalProcessorClass.newInstance();
            }
View Full Code Here

        boolean enabled = Boolean.parseBoolean(enabledPar);

        if (enabled) {
            ClassLoader tccl = Thread.currentThread().getContextClassLoader();
            ClassLoader oauth = OAuthProviderType.class.getClassLoader();
            ClassLoader delegating = new DelegatingClassLoader(tccl, oauth);
            Class<OAuthProviderProcessor<T>> processorClass = (Class<OAuthProviderProcessor<T>>)delegating.loadClass(oauthProviderProcessorClass);
            OAuthProviderProcessor<T> oauthProviderProcessor = (OAuthProviderProcessor<T>)containerContext.getContainer().getComponentInstanceOfType(processorClass);

            oauthPrType = new OAuthProviderType<T>(key, enabled, usernameAttributeName, oauthProviderProcessor, initOAuthURL, friendlyName);
        } else {
            oauthPrType = null;
View Full Code Here

            public ClassLoader run() {
                return Thread.currentThread().getContextClassLoader();
            }
        });

        return new DelegatingClassLoader(tccl,
            GroovyClassLoader.class.getClassLoader(),
            javax.portlet.PortletConfig.class.getClassLoader());
    }
View Full Code Here

TOP

Related Classes of org.gatein.common.classloader.DelegatingClassLoader

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.