Package net.bytebuddy.build.maven
Enum Class Discovery
- All Implemented Interfaces:
Serializable
,Comparable<Discovery>
,Constable
Determines how and if plugins are discovered from the class path.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAttempts discovery of plugins even if they are explicitly registered.Only discovers plugins if no plugin was explicitly registered.Does never discover plugins.Attempts discovery of plugins but does not discover plugins that are explicitly registered. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
true
if explicit configurations should be recorded. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Discovery
(boolean recordConfiguration) Creates a new discovery configuration. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract boolean
isDiscover
(List<ByteBuddyMojo.Transformer> transformers) Determines if plugins should be discovered from the class path.protected boolean
Returnstrue
if explicit configurations should be recorded.static Discovery
Returns the enum constant of this class with the specified name.static Discovery[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
Attempts discovery of plugins even if they are explicitly registered. -
UNIQUE
Attempts discovery of plugins but does not discover plugins that are explicitly registered. -
EMPTY
Only discovers plugins if no plugin was explicitly registered. This is the default configuration. -
NONE
Does never discover plugins.
-
-
Field Details
-
recordConfiguration
private final boolean recordConfigurationtrue
if explicit configurations should be recorded.
-
-
Constructor Details
-
Discovery
private Discovery(boolean recordConfiguration) Creates a new discovery configuration.- Parameters:
recordConfiguration
-true
if explicit configurations should be recorded.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
isRecordConfiguration
protected boolean isRecordConfiguration()Returnstrue
if explicit configurations should be recorded.- Returns:
true
if explicit configurations should be recorded.
-
isDiscover
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.
-