Enum Class InvocationType

java.lang.Object
java.lang.Enum<InvocationType>
com.jprofiler.api.probe.injected.interception.InvocationType
All Implemented Interfaces:
Serializable, Comparable<InvocationType>, Constable

public enum InvocationType extends Enum<InvocationType>
Specifies the point at which the probe method is invoked.
  • Enum Constant Details

    • ENTER

      public static final InvocationType ENTER
      The probe method will be called before any code of the intercepted method is called. You cannot use ReturnValue or ExceptionValue parameters for methods of this type.
    • EXIT

      public static final InvocationType EXIT
      The probe method will be called when the intercepted method exits, either by returning normally or by throwing an exception. You can use both ReturnValue and ExceptionValue parameters for methods of this type. If the intercepted method returns normally, the ExceptionValue parameter will be null. If the method throws an exception, the ReturnValue parameter will be null.

      This type cannot be used for constructors.

    • RETURN

      public static final InvocationType RETURN
      The probe method will be called when the intercepted method returns normally. You can use a ReturnValue parameter, but no ExceptionValue parameter for methods of this type.
    • EXCEPTION

      public static final InvocationType EXCEPTION
      The probe method will be called when the intercepted method throws an exception. You can use an ExceptionValue parameter, but no ReturnValue parameter for methods of this type.

      This type cannot be used for constructors.

  • Method Details

    • values

      public static InvocationType[] 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 InvocationType 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