org.apache.beehive.netui.pageflow.annotations
Annotation Type Jpf.ExceptionHandler


@Target(value=METHOD)
@Retention(value=RUNTIME)
public static @interface Jpf.ExceptionHandler

Method-level annotation that configures an exception handler method, which is invoked when a Jpf.Catch is triggered. This annotation is required for a method to be recognized as an exception handler.


Optional Element Summary
 Jpf.Forward[] forwards
          Array of Forwards that can be used from this exception handler.
 boolean readOnly
          If set to true, then by default this exception handler has "promised" that it will not modify member data.
 

forwards

public abstract Jpf.Forward[] forwards
Array of Forwards that can be used from this exception handler. The method uses a forward by returning a Forward object whose name matches the one in the Forward annotation. When an exception handler method returns null, no forwarding is done.

Default:
{}

readOnly

public abstract boolean readOnly
If set to true, then by default this exception handler has "promised" that it will not modify member data. In containers that support clustering, this allows the framework to avoid serializing the controller instance for session failover after the method is run. This is a performance optimization; it does not have an effect on the behavior of the exception handler itself.

Default:
false