org.apache.tapestry.enhance.javassist
Class EnhancedClass

java.lang.Object
  extended by org.apache.tapestry.enhance.BaseEnhancedClass
      extended by org.apache.tapestry.enhance.javassist.EnhancedClass
All Implemented Interfaces:
IEnhancedClass

public class EnhancedClass
extends BaseEnhancedClass

Represents a class to be enhanced using Javassist.

Since:
3.0
Version:
$Id: EnhancedClass.java 243876 2004-04-05 15:51:22Z hlship $
Author:
Mindbridge

Constructor Summary
EnhancedClass(String className, Class parentClass, EnhancedClassFactory classFactory)
           
 
Method Summary
 void createAutoParameter(String propertyName, String parameterName, String typeClassName, String readMethodName)
           
 Class createEnhancedSubclass()
           
 void createProperty(String propertyName, String propertyType)
          Adds an enhancer for creating the specified property.
 void createProperty(String propertyName, String propertyType, String readMethodName, boolean persistent)
           
 ClassFabricator getClassFabricator()
           
 String getClassName()
           
 javassist.CtClass getObjectType(String type)
           
 
Methods inherited from class org.apache.tapestry.enhance.BaseEnhancedClass
addEnhancer, getEnhancers, hasModifications, performEnhancement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnhancedClass

public EnhancedClass(String className,
                     Class parentClass,
                     EnhancedClassFactory classFactory)
Method Detail

getClassName

public String getClassName()
See Also:
IEnhancedClass.getClassName()

getObjectType

public javassist.CtClass getObjectType(String type)

getClassFabricator

public ClassFabricator getClassFabricator()

createProperty

public void createProperty(String propertyName,
                           String propertyType)
Description copied from interface: IEnhancedClass
Adds an enhancer for creating the specified property.

See Also:
IEnhancedClass.createProperty(java.lang.String, java.lang.String)

createProperty

public void createProperty(String propertyName,
                           String propertyType,
                           String readMethodName,
                           boolean persistent)
See Also:
IEnhancedClass.createProperty(java.lang.String, java.lang.String, java.lang.String, boolean)

createAutoParameter

public void createAutoParameter(String propertyName,
                                String parameterName,
                                String typeClassName,
                                String readMethodName)
See Also:
IEnhancedClass.createAutoParameter(java.lang.String, java.lang.String, java.lang.String, java.lang.String)

createEnhancedSubclass

public Class createEnhancedSubclass()
See Also:
IEnhancedClass.createEnhancedSubclass()