Package org.eclipse.steady.tasks
Interface Task
-
- All Known Subinterfaces:
BomTask
- All Known Implementing Classes:
AbstractBomTask,AbstractTask
public interface TaskTask interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcleanUp()Called afterexecute().voidconfigure(VulasConfiguration _cfg)Called prior toexecute().voidexecute()Performs the actual application analysis.Set<ProgrammingLanguage>getLanguage()The analysis of an application is typically dependent on itsProgrammingLanguages.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> _known_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.
-
-
-
Method Detail
-
setGoalClient
void setGoalClient(GoalClient _client)
Sets theGoalClientin whose context the task is executed.- Parameters:
_client- aGoalClientobject.
-
setApplication
void setApplication(Application _app)
Sets theApplicationin whose context the task is executed.- Parameters:
_app- aApplicationobject.
-
setSearchPaths
void setSearchPaths(List<Path> _paths)
Sets one or more file systemsPaths that contain application code and/or dependencies.- Parameters:
_paths- aListobject.
-
setKnownDependencies
void setKnownDependencies(Map<Path,Dependency> _known_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.- Parameters:
_known_dependencies- aMapobject.
-
configure
void configure(VulasConfiguration _cfg) throws GoalConfigurationException
Called prior toexecute().- Parameters:
_cfg- aVulasConfigurationobject.- Throws:
GoalConfigurationException
-
execute
void execute() throws GoalExecutionExceptionPerforms the actual application analysis. Right after, task-specific methods can be used to retrieve the analysis results.- Throws:
GoalExecutionException
-
cleanUp
void cleanUp()
Called afterexecute().
-
getLanguage
Set<ProgrammingLanguage> getLanguage()
The analysis of an application is typically dependent on itsProgrammingLanguages. This method returns theProgrammingLanguages covered by theTask.- Returns:
- a
Setobject.
-
-