Package org.openengsb.core.util

Examples of org.openengsb.core.util.ContextAwareRunnable


    /**
     * wraps an existing ExecutorService to handle context- and security-related threadlocal variables
     */
    public static void executeWithSystemPermissions(Runnable task) {
        ContextAwareRunnable contextAwaretask = new ContextAwareRunnable(task);
        Subject newsubject = new Subject.Builder().buildSubject();
        newsubject.login(new RootAuthenticationToken());
        try {
            newsubject.execute(contextAwaretask);
        } finally {
View Full Code Here

TOP

Related Classes of org.openengsb.core.util.ContextAwareRunnable

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.