FileDocCategorySizeDatePackage
GetTCLAction.javaAPI DocJBoss 4.2.11977Fri Jul 13 20:53:56 BST 2007org.jboss.ejb3.mdb.inflow

GetTCLAction

public class GetTCLAction extends Object implements PrivilegedAction
author
Scott.Stark@jboss.org
version
$Revison:$

Fields Summary
static PrivilegedAction
ACTION
Thread
t
Constructors Summary
GetTCLAction(Thread t)


    
   
      this.t = t;
   
Methods Summary
static java.lang.ClassLoadergetContextClassLoader()

      ClassLoader loader = (ClassLoader) AccessController.doPrivileged(ACTION);
      return loader;
   
static java.lang.ClassLoadergetContextClassLoader(java.lang.Thread t)

      GetTCLAction action = new GetTCLAction(t);
      ClassLoader loader = (ClassLoader) AccessController.doPrivileged(action);
      return loader;
   
public java.lang.Objectrun()

      Thread thread = t;
      if (thread == null)
         thread = Thread.currentThread();
      ClassLoader loader = thread.getContextClassLoader();
      return loader;