public class FacadeTaskHelper extends Object
Constructor and Description |
---|
FacadeTaskHelper(String defaultValue) |
FacadeTaskHelper(String defaultValue,
String magicValue) |
Modifier and Type | Method and Description |
---|---|
void |
addImplementationArgument(ImplementationSpecificArgument arg)
Command line argument.
|
String[] |
getArgs()
Retrieves the command line arguments enabled for the current
facade implementation.
|
String |
getExplicitChoice()
Retrieves the explicit user choice.
|
String |
getImplementation()
Retrieves the implementation.
|
Path |
getImplementationClasspath(Project project)
The classpath to use when loading the implementation.
|
boolean |
hasBeenSet()
Tests whether the implementation has been chosen by the user
(either via a magic property or explicitly.
|
void |
setImplementation(String userChoice)
Used for explicit user choices.
|
void |
setMagicValue(String magicValue)
Used to set the value of the magic property.
|
public FacadeTaskHelper(String defaultValue)
defaultValue
- The default value for the implementation.
Must not be null.public void addImplementationArgument(ImplementationSpecificArgument arg)
arg
- an argument to add.public String[] getArgs()
public String getExplicitChoice()
public String getImplementation()
public Path getImplementationClasspath(Project project)
project
- the current projectpublic boolean hasBeenSet()
public void setImplementation(String userChoice)
userChoice
- the explicitly chosen implementation.public void setMagicValue(String magicValue)
magicValue
- the value of a magic property that may hold a user.