public static enum SRA.Type extends Enum<SRA.Type>
| Enum Constant and Description |
|---|
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.
|
NEVER
If called outside a SRA context, managed bean method execution
must then continue outside a SRA context.
|
NOT_SUPPORTED
The bean method is executed without a SRA context.
|
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
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.
|
SUPPORTS
If called outside a SRA context managed bean method execution
must then continue outside a SRA context.
|
| Modifier and Type | Method and Description |
|---|---|
static SRA.Type |
valueOf(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.
|
public static final SRA.Type REQUIRED
public static final SRA.Type REQUIRES_NEW
public static final SRA.Type MANDATORY
public static final SRA.Type SUPPORTS
public static final SRA.Type NOT_SUPPORTED
public static final SRA.Type NEVER
public static SRA.Type[] values()
for (SRA.Type c : SRA.Type.values()) System.out.println(c);
public static SRA.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2021 JBoss by Red Hat. All rights reserved.