Enum SRA.Type

    • Enum Constant Summary

      Enum Constants 
      Enum Constant 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.
    • 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 name
        NullPointerException - if the argument is null