org.apache.tapestry.enhance.javassist
Class CreateAutoParameterEnhancer

java.lang.Object
  extended by org.apache.tapestry.enhance.javassist.CreateAutoParameterEnhancer
All Implemented Interfaces:
IEnhancer

public class CreateAutoParameterEnhancer
extends Object
implements IEnhancer

Creates a synthetic property for a Direction.AUTO parameter.

Since:
3.0
Version:
$Id: CreateAutoParameterEnhancer.java 243878 2004-04-06 18:18:57Z hlship $
Author:
Mindbridge

Field Summary
protected static String PARAMETER_ACCESSOR_TEMPLATE
          The code template for the parameter accessor method.
protected static String PARAMETER_MUTATOR_TEMPLATE
          The code template for the parameter mutator method.
 
Constructor Summary
CreateAutoParameterEnhancer(EnhancedClass enhancedClass, String propertyName, String parameterName, javassist.CtClass type, String readMethodName)
           
 
Method Summary
 void performEnhancement(IEnhancedClass enhancedClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAMETER_ACCESSOR_TEMPLATE

protected static final String PARAMETER_ACCESSOR_TEMPLATE
The code template for the parameter accessor method.

Legend:
{0} = readBindingMethodName
{1} = binding value accessor
{2} = cast (if needed)

See Also:
Constant Field Values

PARAMETER_MUTATOR_TEMPLATE

protected static final String PARAMETER_MUTATOR_TEMPLATE
The code template for the parameter mutator method.

Legend:
{0} = readBindingMethodName
{1} = binding value mutator
{2} = value cast

See Also:
Constant Field Values
Constructor Detail

CreateAutoParameterEnhancer

public CreateAutoParameterEnhancer(EnhancedClass enhancedClass,
                                   String propertyName,
                                   String parameterName,
                                   javassist.CtClass type,
                                   String readMethodName)
Method Detail

performEnhancement

public void performEnhancement(IEnhancedClass enhancedClass)
Specified by:
performEnhancement in interface IEnhancer