Package org.openntf.domino.thread

Examples of org.openntf.domino.thread.DominoSessionType


  }

  public void queue(final Runnable runnable, final ClassLoader loader) {
    ClassLoader localLoader = loader == null ? runnable.getClass().getClassLoader() : loader;
    if (runnable instanceof IDominoRunnable) {
      DominoSessionType type = ((IDominoRunnable) runnable).getSessionType();
      if (type == DominoSessionType.NAMED) {
        XotsNamedRunner runner = new XotsNamedRunner(runnable, localLoader);
        super.process(runner);
      } else if (type == DominoSessionType.NATIVE) {
        XotsNativeRunner runner = new XotsNativeRunner(runnable, localLoader);
View Full Code Here


      } else if (runnable instanceof DominoNativeRunner) {
        final ClassLoader loader = ((DominoNativeRunner) runnable).getClassLoader();
        runnable = new TrustedRunnable(runnable, factoryAccessController_, securityManager_);
        ((TrustedRunnable) runnable).setClassLoader(loader);
      } else if (runnable instanceof IDominoRunnable) {
        DominoSessionType type = ((IDominoRunnable) runnable).getSessionType();
        final ClassLoader loader = ((IDominoRunnable) runnable).getContextClassLoader();
        if (type == DominoSessionType.NATIVE) {
          DominoNativeRunner nativeRunner = new DominoNativeRunner(runnable, loader);
          runnable = new TrustedRunnable(nativeRunner, factoryAccessController_, securityManager_);
          ((TrustedRunnable) runnable).setClassLoader(loader);
        } else {
          System.out.println("DEBUG: IDominoRunnable has session type " + type.name());
        }
      }
      super.execute(runnable);
    }
View Full Code Here

      } else if (runnable instanceof DominoNativeRunner) {
        final ClassLoader loader = ((DominoNativeRunner) runnable).getClassLoader();
        runnable = new TrustedRunnable(runnable, factoryAccessController_, securityManager_);
        ((TrustedRunnable) runnable).setClassLoader(loader);
      } else if (runnable instanceof IDominoRunnable) {
        DominoSessionType type = ((IDominoRunnable) runnable).getSessionType();
        final ClassLoader loader = ((IDominoRunnable) runnable).getContextClassLoader();
        if (type == DominoSessionType.NATIVE) {
          DominoNativeRunner nativeRunner = new DominoNativeRunner(runnable, loader);
          runnable = new TrustedRunnable(nativeRunner, factoryAccessController_, securityManager_);
          ((TrustedRunnable) runnable).setClassLoader(loader);
        } else {
          System.out.println("DEBUG: IDominoRunnable has session type " + type.name());
        }
      }
      super.execute(runnable);
    }
View Full Code Here

TOP

Related Classes of org.openntf.domino.thread.DominoSessionType

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.