org.jboss.reflect.plugins.javassist.classpool
Class RepositoryClassPoolFactory
java.lang.Object
org.jboss.reflect.plugins.javassist.classpool.RepositoryClassPoolFactory
- All Implemented Interfaces:
- ClassPoolFactory
public class RepositoryClassPoolFactory
- extends Object
- implements ClassPoolFactory
This ClassPoolFactory is tailored for use with scoped class pools.
In order to retrieve a ClassPool, this factory registers the
corresponding ClassLoader with
ScopedClassPoolRepository.registerClassLoader(ClassLoader)
.
For that reason, it is important to register a ScopedClassPoolFactory
(ScopedClassPoolRepository.setClassPoolFactory(org.jboss.classpool.scoped.ScopedClassPoolFactory)
))
prior to using this factory.
- Version:
- $Revision: 102221 $
- Author:
- Flavia Rainone
- See Also:
ScopedClassPoolRepository.registerClassLoader(ClassLoader)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RepositoryClassPoolFactory
public RepositoryClassPoolFactory(org.jboss.classpool.scoped.ScopedClassPoolRepository classPoolRepository)
getPoolForLoader
public javassist.ClassPool getPoolForLoader(ClassLoader cl)
- Description copied from interface:
ClassPoolFactory
- Get class pool for class loader.
- Specified by:
getPoolForLoader
in interface ClassPoolFactory
- Parameters:
cl
- the classloader
- Returns:
- class pool instance
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.