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>, java.lang.constant.Constable
Enclosing class:
SRA

public static enum SRA.Type extends Enum<SRA.Type>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    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.
    If called outside a SRA context, managed bean method execution must then continue outside a SRA context.
    The bean method is executed without a SRA context.
    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 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 outside a SRA context managed bean method execution must then continue outside a SRA context.
  • Method Summary

    Modifier and Type
    Method
    Description
    static SRA.Type
    Returns the enum constant of this type with the specified name.
    static SRA.Type[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • 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 Details

    • values

      public static SRA.Type[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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 name
      NullPointerException - if the argument is null