| org.apache.tapestry.ioc.internal.services.ClassFactoryClassPool
ClassFactoryClassPool | public class ClassFactoryClassPool extends ClassPool (Code) | | Used to ensure that
javassist.ClassPool.appendClassPath(javassist.ClassPath) is invoked
within a synchronized lock, and also handles tricky class loading issues (caused by the creation
of classes, and class loaders, at runtime).
|
Method Summary | |
public synchronized void | addClassLoaderIfNeeded(ClassLoader loader) Convienience method for adding to the ClassPath for a particular class loader. | public Class | importClass(Class clazz) Returns the nearest super-class of the provided class that can be converted to a
CtClass . |
ClassFactoryClassPool | public ClassFactoryClassPool(ClassLoader contextClassLoader)(Code) | | |
addClassLoaderIfNeeded | public synchronized void addClassLoaderIfNeeded(ClassLoader loader)(Code) | | Convienience method for adding to the ClassPath for a particular class loader.
Parameters: loader - the class loader to add (derived from a loaded class, and may be null for somesystem classes) |
importClass | public Class importClass(Class clazz)(Code) | | Returns the nearest super-class of the provided class that can be converted to a
CtClass . This is used to filter out Hibernate-style proxies (created as subclasses
of oridnary classes). This will automatically add the class' classLoader to the pool's class
path.
Parameters: clazz - class to import clazz, or a super-class of clazz |
|
|