Enum SRA.Type
- java.lang.Object
-
- java.lang.Enum<SRA.Type>
-
- org.jboss.jbossts.star.annotation.SRA.Type
-
- All Implemented Interfaces:
Serializable,Comparable<SRA.Type>
- Enclosing class:
- SRA
public static enum SRA.Type extends Enum<SRA.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MANDATORYIf called outside a transaction context, the method call will return with a 412 Precondition Failed HTTP status code If called inside a transaction context the bean method execution will then continue under that context.NEVERIf called outside a SRA context, managed bean method execution must then continue outside a SRA context.NOT_SUPPORTEDThe bean method is executed without a SRA context.REQUIREDIf called outside a SRA context a JAX-RS filter will begin a new SRA for the duration of the method call and when the call completes another JAX-RS filter will complete the SRA.REQUIRES_NEWIf called outside a SRA context a JAX-RS filter will begin a new SRA for the duration of the method call and when the call completes another JAX-RS filter will complete the SRA.SUPPORTSIf called outside a SRA context managed bean method execution must then continue outside a SRA context.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SRA.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static SRA.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REQUIRED
public static final SRA.Type REQUIRED
If called outside a SRA context a JAX-RS filter will begin a new SRA for the duration of the method call and when the call completes another JAX-RS filter will complete the SRA.
-
REQUIRES_NEW
public static final SRA.Type REQUIRES_NEW
If called outside a SRA context a JAX-RS filter will begin a new SRA for the duration of the method call and when the call completes another JAX-RS filter will complete the SRA. If called inside a SRA context a JAX-RS filter will suspend it and begin a new SRA for the duration of the method call and when the call completes another JAX-RS filter will complete the SRA and resume the one that was active on entry to the method.
-
MANDATORY
public static final SRA.Type MANDATORY
If called outside a transaction context, the method call will return with a 412 Precondition Failed HTTP status code If called inside a transaction context the bean method execution will then continue under that context.
-
SUPPORTS
public static final SRA.Type SUPPORTS
If called outside a SRA context managed bean method execution must then continue outside a SRA context. If called inside a SRA context, the managed bean method execution must then continue inside this SRA context.
-
NOT_SUPPORTED
public static final SRA.Type NOT_SUPPORTED
The bean method is executed without a SRA context. If a context is present on entry then it is suspended and then resumed after the execution has completed.
-
NEVER
public static final SRA.Type NEVER
If called outside a SRA context, managed bean method execution must then continue outside a SRA context. If called inside a SRA context the method is not executed and a 412 Precondition Failed HTTP status code is returned to the caller.
-
-
Method Detail
-
values
public static SRA.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SRA.Type c : SRA.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SRA.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-