Package org.eclipse.steady.tasks
Class AbstractTask
- java.lang.Object
-
- org.eclipse.steady.tasks.AbstractTask
-
- All Implemented Interfaces:
Task
- Direct Known Subclasses:
AbstractBomTask
public abstract class AbstractTask extends Object implements Task
Abstract AbstractTask class.
-
-
Field Summary
Fields Modifier and Type Field Description protected VulasConfigurationvulasConfiguration
-
Constructor Summary
Constructors Constructor Description AbstractTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanUp()Called afterTask.execute().voidconfigure(VulasConfiguration _cfg)Called prior toTask.execute().ApplicationgetApplication()Getter for the fieldapplication.Map<Path,Dependency>getKnownDependencies()Getter for the fieldknownDependencies.List<Path>getSearchPath()getSearchPath.booleanhasSearchPath()hasSearchPath.booleanisGoalClient(GoalClient _client)Returns true if theGoalClientof this task is equal to the given client, false otherwise.booleanisOneOfGoalClients(List<GoalClient> clients)isOneOfGoalClients.voidsetApplication(Application _app)Sets theApplicationin whose context the task is executed.voidsetGoalClient(GoalClient _client)Sets theGoalClientin whose context the task is executed.voidsetKnownDependencies(Map<Path,Dependency> _dependencies)Provides the task with applicationDependencys that are already known before task execution.voidsetSearchPaths(List<Path> _paths)Sets one or more file systemsPaths that contain application code and/or dependencies.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.steady.tasks.Task
execute, getLanguage
-
-
-
-
Field Detail
-
vulasConfiguration
protected VulasConfiguration vulasConfiguration
-
-
Method Detail
-
hasSearchPath
public final boolean hasSearchPath()
hasSearchPath.
- Returns:
- a boolean.
-
setSearchPaths
public final void setSearchPaths(List<Path> _paths)
Sets one or more file systemsPaths that contain application code and/or dependencies.- Specified by:
setSearchPathsin interfaceTask- Parameters:
_paths- aListobject.
-
isGoalClient
public final boolean isGoalClient(GoalClient _client)
Returns true if theGoalClientof this task is equal to the given client, false otherwise.- Parameters:
_client- aGoalClientobject.- Returns:
- a boolean.
-
isOneOfGoalClients
public final boolean isOneOfGoalClients(List<GoalClient> clients)
isOneOfGoalClients.
- Parameters:
clients- aListobject.- Returns:
- a boolean.
-
setGoalClient
public final void setGoalClient(GoalClient _client)
Sets theGoalClientin whose context the task is executed.- Specified by:
setGoalClientin interfaceTask- Parameters:
_client- aGoalClientobject.
-
getApplication
public final Application getApplication()
Getter for the field
application.- Returns:
- a
Applicationobject.
-
setApplication
public final void setApplication(Application _app)
Sets theApplicationin whose context the task is executed.- Specified by:
setApplicationin interfaceTask- Parameters:
_app- aApplicationobject.
-
getKnownDependencies
public Map<Path,Dependency> getKnownDependencies()
Getter for the field
knownDependencies.- Returns:
- a
Mapobject.
-
setKnownDependencies
public void setKnownDependencies(Map<Path,Dependency> _dependencies)
Provides the task with applicationDependencys that are already known before task execution. This information may come from build systems or the like, and typically facilitates the task execution.- Specified by:
setKnownDependenciesin interfaceTask- Parameters:
_dependencies- aMapobject.
-
configure
public void configure(VulasConfiguration _cfg) throws GoalConfigurationException
- Specified by:
configurein interfaceTask- Parameters:
_cfg- aVulasConfigurationobject.- Throws:
GoalConfigurationException
-
cleanUp
public void cleanUp()
Called afterTask.execute().
-
-