org.glassfish.api.admin
Annotation Type IfFailure


@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
public @interface IfFailure

Annotation used to indicate what type of failure action should be performed if the annotated method was to return a failure error code or throw an exception.

Author:
Jerome Dochez

Required Element Summary
 FailurePolicy value
          Returns the intent action to perform if the annotated method does not execute successfully (expressed by a faulty error code or an exception thrown).
 

Element Detail

value

public abstract FailurePolicy value
Returns the intent action to perform if the annotated method does not execute successfully (expressed by a faulty error code or an exception thrown).

Returns:
the intent action to perform


Copyright © 2012 GlassFish Community. All Rights Reserved.