|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@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. |
public abstract Jpf.Forward[] forwards
Forward
object whose name matches the one in the Forward
annotation. When an exception handler method returns null
, no forwarding is done.
public abstract boolean readOnly
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |