org.jboss.aop.classpool
Interface AOPScopedClassLoaderHelper


public interface AOPScopedClassLoaderHelper

Helper to determine if we are running within a scoped classloader.

Version:
$Revision: 56777 $
Author:
Kabir Khan

Method Summary
 Object getLoaderRepository(ClassLoader loader)
          Gets the loader repository for the passed in scoped JBossClassLoader
 Domain getScopedClassLoaderDomain(ClassLoader cl, AspectManager parent)
          Creates a new domain for the passed in classloader with the passed in AspectManager as the parent
 ClassLoader getTopLevelJBossClassLoader()
          Returns the top-level JBoss classloader
 ClassLoader ifScopedDeploymentGetScopedParentUclForCL(ClassLoader loader)
          Checks if passed in ClassLoader is a scoped JBoss classloader
 

Method Detail

ifScopedDeploymentGetScopedParentUclForCL

ClassLoader ifScopedDeploymentGetScopedParentUclForCL(ClassLoader loader)
Checks if passed in ClassLoader is a scoped JBoss classloader

Parameters:
loader - The loader to check
Returns:
The nearest parent (or self) in the hierarchy that is scoped, or null if not scoped

getTopLevelJBossClassLoader

ClassLoader getTopLevelJBossClassLoader()
Returns the top-level JBoss classloader


getScopedClassLoaderDomain

Domain getScopedClassLoaderDomain(ClassLoader cl,
                                  AspectManager parent)
Creates a new domain for the passed in classloader with the passed in AspectManager as the parent

Parameters:
loader - A scoped classloader
parent - The AspectManager to create the domain under
Returns:
The created domain for the scoped classloader

getLoaderRepository

Object getLoaderRepository(ClassLoader loader)
Gets the loader repository for the passed in scoped JBossClassLoader

Parameters:
loader - The classloader to get the loader repository for
Returns:
The LoaderRepository for the scopedc ClassLoader, or null if ClassLoader is not scoped


Copyright © 2004 JBoss Inc. All Rights Reserved.