Enum Discovery

java.lang.Object
java.lang.Enum<Discovery>
net.bytebuddy.build.maven.Discovery
All Implemented Interfaces:
Serializable, Comparable<Discovery>, java.lang.constant.Constable

public enum Discovery extends Enum<Discovery>
Determines how and if plugins are discovered.
  • Enum Constant Details

    • ALL

      public static final Discovery ALL
      Attempts discovery of plugins even if they are explicitly registered.
    • UNIQUE

      public static final Discovery UNIQUE
      Attempts discovery of plugins but does not discover plugins that are explicitly registered.
    • EMPTY

      public static final Discovery EMPTY
      Only discovers plugins if no plugin was explicitly registered. This is the default configuration.
    • NONE

      public static final Discovery NONE
      Does never discover plugins.
  • Method Details

    • values

      public static Discovery[] 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 Discovery 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
    • isRecordConfiguration

      protected boolean isRecordConfiguration()
      Returns true if explicit configurations should be recorded.
      Returns:
      true if explicit configurations should be recorded.
    • isDiscover

      protected abstract boolean isDiscover(List<ByteBuddyMojo.Transformer> transformers)
      Determines if plugins should be discovered from the class path.
      Parameters:
      transformers - The configured transformers.
      Returns:
      true if plugins should be discovered from the class path.