Package org.codehaus.plexus.compiler
Enum CompilerConfiguration.CompilerReuseStrategy
java.lang.Object
java.lang.Enum<CompilerConfiguration.CompilerReuseStrategy>
org.codehaus.plexus.compiler.CompilerConfiguration.CompilerReuseStrategy
- All Implemented Interfaces:
Serializable
,Comparable<CompilerConfiguration.CompilerReuseStrategy>
- Enclosing class:
CompilerConfiguration
public static enum CompilerConfiguration.CompilerReuseStrategy
extends Enum<CompilerConfiguration.CompilerReuseStrategy>
Re-use strategy of the compiler (implement for java only).
-
Enum Constant Summary
Enum ConstantDescriptionRe-create a new compiler for each use.Re-use already created compiler, create new one if non already exists.Always reuse the same. -
Method Summary
-
Enum Constant Details
-
ReuseSame
Always reuse the same. Default strategy. -
AlwaysNew
Re-create a new compiler for each use. -
ReuseCreated
Re-use already created compiler, create new one if non already exists. Will mimic a kind of pool to prevent different threads use the same.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getStrategy
-
toString
- Overrides:
toString
in classEnum<CompilerConfiguration.CompilerReuseStrategy>
-