Abstract base class for enhancers that modify and extend the project extension and tasks of a code quality plugin.
T - The type of task this enhancer operates on.| Constructor and description |
|---|
protected AbstractPluginEnhancer
(Project pProject, java.lang.Class<? extends Plugin<Project>> pPluginClass, java.lang.String pToolName)Create a new AbstractPluginEnhancer. |
| Type | Name and description |
|---|---|
void |
configureExtension()Configure the task's extension with sensible defaults. |
AbstractCheckTaskEnhancer<T> |
createTaskEnhancer(T pTask)Create a new enhancer for a task. |
protected java.io.File |
createTemporaryFileSpec(java.lang.String pFileName)Create a specification for a file in the project's temporary directory for the enhancer's tool. |
void |
enhance()Configure the extension related to the task type this enhancer operates on and then enhance all tasks in the project that have that type. |
java.lang.Class<T> |
getTaskClass()Get the task class this enhancer operates on. |
| Methods inherited from class | Name |
|---|---|
class ProjectAware |
getProject |
Create a new AbstractPluginEnhancer.
pProject - The enhanced plugin's project.pPluginClass - The plugin's class.pToolName - The plugin's tool name.Configure the task's extension with sensible defaults.
Create a new enhancer for a task.
pTask - The task to enhance.AbstractTaskEnhancer.Create a specification for a file in the project's temporary directory for the enhancer's tool.
pFileName - The name of the file.File with the specification.Configure the extension related to the task type this enhancer operates on and then enhance all tasks in the project that have that type.
Get the task class this enhancer operates on.