站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 common API Documentation 英文版文档

ContextClassLoader (JBoss/Common API) - JBoss 4.0.1 sp1 common API Documentation 英文版文档


org.jboss.util.loading
Class ContextClassLoader

java.lang.Object
  extended byorg.jboss.util.loading.ContextClassLoader
Direct Known Subclasses:
ContextClassLoaderSwitcher

public class ContextClassLoader
extends Object

A helper for context classloading.

When a security manager is installed, the constructor checks for the runtime permissions "getClassLoader"

Version:
$Revision: 1.3 $
Author:
Adrian Brock

Field Summary
static RuntimePermission GETCLASSLOADER
          Retrieve a classloader permission
static org.jboss.util.loading.ContextClassLoader.NewInstance INSTANTIATOR
          Instantiate a new context class loader
 
Method Summary
 ClassLoader getContextClassLoader()
          Retrieve the context classloader
 ClassLoader getContextClassLoader(Thread thread)
          Retrieve the context classloader for the given thread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GETCLASSLOADER

public static final RuntimePermission GETCLASSLOADER
Retrieve a classloader permission


INSTANTIATOR

public static final org.jboss.util.loading.ContextClassLoader.NewInstance INSTANTIATOR
Instantiate a new context class loader

Method Detail

getContextClassLoader

public ClassLoader getContextClassLoader()
Retrieve the context classloader

Returns:
the context classloader

getContextClassLoader

public ClassLoader getContextClassLoader(Thread thread)
Retrieve the context classloader for the given thread

Parameters:
thread - the thread
Returns:
the context classloader


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.