public class ProjectHelperRepository extends Object
ProjectHelper
found in the classpath or via
some System properties.
See the ProjectHelper documentation in the manual.
Modifier and Type | Method and Description |
---|---|
Iterator<ProjectHelper> |
getHelpers()
Get an iterator on the list of project helpers configured.
|
static ProjectHelperRepository |
getInstance() |
ProjectHelper |
getProjectHelperForAntlib(Resource antlib)
Get the helper that will be able to parse the specified antlib.
|
ProjectHelper |
getProjectHelperForBuildFile(Resource buildFile)
Get the helper that will be able to parse the specified build file.
|
void |
registerProjectHelper(Class<? extends ProjectHelper> helperClass)
Register the specified project helper into the repository.
|
void |
registerProjectHelper(String helperClassName)
Register the specified project helper into the repository.
|
public Iterator<ProjectHelper> getHelpers()
ProjectHelper
public static ProjectHelperRepository getInstance()
public ProjectHelper getProjectHelperForAntlib(Resource antlib) throws BuildException
null
).BuildException
public ProjectHelper getProjectHelperForBuildFile(Resource buildFile) throws BuildException
null
).BuildException
public void registerProjectHelper(Class<? extends ProjectHelper> helperClass) throws BuildException
The helper will be added after all the already registered helpers, but before the default one (ProjectHelper2)
helperClass
- the class of the helperBuildException
- if there is no constructor with no argumentpublic void registerProjectHelper(String helperClassName) throws BuildException
The helper will be added after all the already registered helpers, but before the default one (ProjectHelper2)
helperClassName
- the fully qualified name of the helperBuildException
- if the class cannot be loaded or if there is no constructor
with no argument