Enum Class ProxyType

java.lang.Object
java.lang.Enum<ProxyType>
org.springframework.context.annotation.ProxyType
All Implemented Interfaces:
Serializable, Comparable<ProxyType>, Constable

public enum ProxyType extends Enum<ProxyType>
Common enum for indicating a desired proxy type.
Since:
7.0
Author:
Juergen Hoeller
See Also:
  • Enum Constant Details

    • DEFAULT

      public static final ProxyType DEFAULT
      Default is a JDK dynamic proxy, or potentially a class-based CGLIB proxy when globally configured.
    • INTERFACES

      public static final ProxyType INTERFACES
      Suggest a JDK dynamic proxy implementing all interfaces exposed by the class of the target object. Overrides a globally configured default.
    • TARGET_CLASS

      public static final ProxyType TARGET_CLASS
      Suggest a class-based CGLIB proxy. Overrides a globally configured default.
  • Method Details

    • values

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