Annotation Type DiscardAfter


  • @Target(METHOD)
    @Retention(RUNTIME)
    @Documented
    @UseWith({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()