org.apache.tapestry.annotations
Annotation Type Property


@Target(value=FIELD)
@Documented
@Retention(value=RUNTIME)
public @interface Property

Annotation for fields for which accessor methods (getters and setters) should be created. This can help when defining the kind of placeholder properties often used in components, though the disadvantage is that you can't access the fields in a unit test, and you may get compiler warnings about unused private variables.


Optional Element Summary
 boolean read
          Whether to create a readable property (i.e., generate a getter method).
 boolean write
          Whether to create a writeable property (i.e., generate a setter method).
 

read

public abstract boolean read
Whether to create a readable property (i.e., generate a getter method).

Default:
true

write

public abstract boolean write
Whether to create a writeable property (i.e., generate a setter method).

Default:
true


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.