org.apache.tapestry.enhance.javassist
Class EnhancedClassFactory
java.lang.Object
org.apache.tapestry.enhance.javassist.EnhancedClassFactory
- All Implemented Interfaces:
- IEnhancedClassFactory
public class EnhancedClassFactory
- extends Object
- implements IEnhancedClassFactory
This class defines the factory for creation of new Javassist enhanced classes.
There is typically only one object of this class in the system.
Common functionality objects for Javassist enhancement are stored here.
- Since:
- 3.0
- Version:
- $Id: EnhancedClassFactory.java 385802 2006-03-14 13:47:10Z jkuhnert $
- Author:
- Mindbridge
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnhancedClassFactory
public EnhancedClassFactory(IResourceResolver resourceResolver)
createClassPool
protected javassist.ClassPool createClassPool()
reset
public void reset()
- Specified by:
reset
in interface IEnhancedClassFactory
- See Also:
IEnhancedClassFactory.reset()
createEnhancedClass
public IEnhancedClass createEnhancedClass(String className,
Class parentClass)
- Specified by:
createEnhancedClass
in interface IEnhancedClassFactory
- See Also:
IEnhancedClassFactory.createEnhancedClass(java.lang.String, java.lang.Class)
getClassPool
public javassist.ClassPool getClassPool()
getClassMapping
public ClassMapping getClassMapping()
getObjectType
public javassist.CtClass getObjectType(String type)
- Given the java class, returns the equivalent
type
. In addition,
knows about scalar types, arrays of scalar types, java.lang.Object[] and
java.lang.String[].
getEnhancedClassLoader
public EnhancedClassLoader getEnhancedClassLoader()
- Returns:
- The class loader to be used to create the enhanced class