Package net.bytebuddy.build.maven
Enum Class Discovery
- All Implemented Interfaces:
Serializable,Comparable<Discovery>,Constable
Determines how and if plugins are discovered.
-
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 booleantrueif explicit configurations should be recorded. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDiscovery(boolean recordConfiguration) Creates a new discovery configuration. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract booleanisDiscover(List<ByteBuddyMojo.Transformer> transformers) Determines if plugins should be discovered from the class path.protected booleanReturnstrueif explicit configurations should be recorded.static DiscoveryReturns 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 recordConfigurationtrueif explicit configurations should be recorded.
-
-
Constructor Details
-
Discovery
private Discovery(boolean recordConfiguration) Creates a new discovery configuration.- Parameters:
recordConfiguration-trueif 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()Returnstrueif explicit configurations should be recorded.- Returns:
trueif explicit configurations should be recorded.
-
isDiscover
Determines if plugins should be discovered from the class path.- Parameters:
transformers- The configured transformers.- Returns:
trueif plugins should be discovered from the class path.
-