org.jboss.aop.advice
Class AspectFactoryWithClassLoaderSupport

java.lang.Object
  extended by org.jboss.aop.advice.AspectFactoryWithClassLoaderSupport
All Implemented Interfaces:
AspectFactory, AspectFactoryWithClassLoader
Direct Known Subclasses:
AspectFactoryDelegator, GenericAspectFactory

public abstract class AspectFactoryWithClassLoaderSupport
extends Object
implements AspectFactory, AspectFactoryWithClassLoader

Helper class to be able to set the classloader needed for loading up the aspects in the aspectfactories

Version:
$Revision: 77480 $
Author:
Kabir Khan

Constructor Summary
protected AspectFactoryWithClassLoaderSupport()
           
 
Method Summary
protected  ClassLoader getLoader()
           
protected  Class<?> loadClass(String name)
           
 ClassLoader peekScopedClassLoader()
           
 void popScopedClassLoader()
           
 void pushScopedClassLoader(ClassLoader scopedCl)
           
 void setClassLoader(ClassLoader cl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.aop.advice.AspectFactory
createPerClass, createPerInstance, createPerJoinpoint, createPerJoinpoint, createPerVM, getName
 

Constructor Detail

AspectFactoryWithClassLoaderSupport

protected AspectFactoryWithClassLoaderSupport()
Method Detail

setClassLoader

public void setClassLoader(ClassLoader cl)
Specified by:
setClassLoader in interface AspectFactoryWithClassLoader

getLoader

protected ClassLoader getLoader()

pushScopedClassLoader

public void pushScopedClassLoader(ClassLoader scopedCl)
Specified by:
pushScopedClassLoader in interface AspectFactoryWithClassLoader

popScopedClassLoader

public void popScopedClassLoader()
Specified by:
popScopedClassLoader in interface AspectFactoryWithClassLoader

peekScopedClassLoader

public ClassLoader peekScopedClassLoader()
Specified by:
peekScopedClassLoader in interface AspectFactoryWithClassLoader

loadClass

protected Class<?> loadClass(String name)
                      throws ClassNotFoundException
Throws:
ClassNotFoundException


Copyright © 2008 JBoss, a division of Red Hat, Inc.. All Rights Reserved.