org.apache.tapestry5.annotations
Annotation Type DiscardAfter


@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
@UseWith(value={COMPONENT,MIXIN,PAGE})
public @interface DiscardAfter

Marks a method of a page or a component to discard all persistent field changes. The changes are eliminated from persistent storage after the marked method is invoked. Any exception (runtime or checked) thrown by annotated method will cause persistent fields to keep their values.

Since:
5.2.0
See Also:
ComponentResources.discardPersistentFieldChanges()



Copyright © 2003-2012 The Apache Software Foundation.