Examples of GetClassLoaderAction


Examples of org.wildfly.security.manager.GetClassLoaderAction

    static String setSystemProperty(final String key, final String value) {
        return getSecurityManager() == null ? setProperty(key, value) : doPrivileged(new WritePropertyAction(key, value));
    }

    static ClassLoader getClassLoader(final Class<?> clazz) {
        return getSecurityManager() == null ? clazz.getClassLoader() : doPrivileged(new GetClassLoaderAction(clazz));
    }
View Full Code Here

Examples of org.wildfly.security.manager.action.GetClassLoaderAction

        }
        this.classLoader = ejbComponentCreateService.getModuleClassLoader();
        this.suspendController = ejbComponentCreateService.getSuspendControllerInjectedValue().getValue();
        this.activationSpec = activationSpec;
        this.messageListenerInterface = messageListenerInterface;
        final ClassLoader componentClassLoader = doPrivileged(new GetClassLoaderAction(ejbComponentCreateService.getComponentClass()));
        final MessageEndpointService<?> service = new MessageEndpointService<Object>() {
            @Override
            public Class<Object> getMessageListenerInterface() {
                return (Class<Object>) messageListenerInterface;
            }
View Full Code Here

Examples of org.wildfly.security.manager.action.GetClassLoaderAction

    private ClassLoader driverClassLoader() {
        if(classLoader != null) {
            return classLoader;
        }
        final Class<? extends Driver> clazz = driverValue.getValue().getClass();
        return ! WildFlySecurityManager.isChecking() ? clazz.getClassLoader() : doPrivileged(new GetClassLoaderAction(clazz));
    }
View Full Code Here

Examples of org.wildfly.security.manager.action.GetClassLoaderAction

* @author <a href="kabir.khan@jboss.com">Kabir Khan</a>
*/
class SecurityActions {

    static ClassLoader getClassLoader(final Class<?> clazz) {
        return ! WildFlySecurityManager.isChecking() ? clazz.getClassLoader() : doPrivileged(new GetClassLoaderAction(clazz));
    }
View Full Code Here

Examples of org.wildfly.security.manager.action.GetClassLoaderAction

    static ModuleClassLoader getModuleClassLoader() throws ModuleLoadException {
        if (! WildFlySecurityManager.isChecking()) {
            return (ModuleClassLoader) SecurityActions.class.getClassLoader();
        } else {
            return (ModuleClassLoader) doPrivileged(new GetClassLoaderAction(SecurityActions.class));
        }
    }
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.