Enum Class Inheritance.Mode

java.lang.Object
java.lang.Enum<Inheritance.Mode>
com.perfino.annotation.Inheritance.Mode
All Implemented Interfaces:
Serializable, Comparable<Inheritance.Mode>, Constable
Enclosing class:
Inheritance

public static enum Inheritance.Mode extends Enum<Inheritance.Mode>
Mode for handling derived classes. See Inheritance for a description of the different modes.
  • Enum Constant Details

    • NONE

      public static final Inheritance.Mode NONE
      No methods in derived classes will be instrumented. Overridden methods that do not call super() do not create a transaction.
    • WITH_SUBCLASS_NAMES

      public static final Inheritance.Mode WITH_SUBCLASS_NAMES
      All public methods in derived classes will be instrumented, using the name of the derived class for transaction naming. For a ClassTransaction, if Inheritance.implementingOnly() is set to true, only overridden and implementing methods in derived classes create transactions.
      See Also:
    • WITH_SUPERCLASS_NAME

      public static final Inheritance.Mode WITH_SUPERCLASS_NAME
      All public methods in derived classes will be instrumented, using the name of the annotated class for transaction naming. For a ClassTransaction, if Inheritance.implementingOnly() is set to true, only overridden and implementing methods in derived classes create transactions.
      See Also:
  • Method Details

    • values

      public static Inheritance.Mode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Inheritance.Mode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null