ProjectHelper
found in the classpath or via
some System properties.
See the ProjectHelper documentation in the manual.
Modifier and Type | Field and Description |
---|---|
private static final boolean | |
private static final String | |
private List | |
private static ProjectHelperRepository | |
private static Constructor |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
private void | |
private Constructor | Returns: the constructor of the specified class.The name of the class to create an instance of. Must not be
helperClass)null .Get the constructor with not argument of an helper from its class name. |
public Iterator | Returns: an iterator ofProjectHelper Get an iterator on the list of project helpers configured. |
public static ProjectHelperRepository | |
private Constructor | |
private Constructor | |
public ProjectHelper | Returns: the first ProjectHelper that fit the requirement (nevernull ).Resource antlib)Get the helper that will be able to parse the specified antlib. |
public ProjectHelper | Returns: the first ProjectHelper that fit the requirement (nevernull ).Resource buildFile)Get the helper that will be able to parse the specified build file. |
public void | registerProjectHelper(String
the fully qualified name of the helper helperClassName)Register the specified project helper into the repository. |
public void | registerProjectHelper(Class<? extends ProjectHelper>
the class of the helper helperClass)Register the specified project helper into the repository. |
private void |
DEBUG | back to summary |
---|---|
private static final boolean DEBUG |
DEBUG_PROJECT_HELPER_REPOSITORY | back to summary |
---|---|
private static final String DEBUG_PROJECT_HELPER_REPOSITORY |
helpers | back to summary |
---|---|
private List<Constructor<? extends ProjectHelper>> helpers |
instance | back to summary |
---|---|
private static ProjectHelperRepository instance |
PROJECTHELPER2_CONSTRUCTOR | back to summary |
---|---|
private static Constructor<ProjectHelper2> PROJECTHELPER2_CONSTRUCTOR |
ProjectHelperRepository | back to summary |
---|---|
private ProjectHelperRepository() |
collectProjectHelpers | back to summary |
---|---|
private void collectProjectHelpers() |
getHelperConstructor | back to summary |
---|---|
private Constructor Get the constructor with not argument of an helper from its class name. It'll first try the thread class loader, then Class.forName() will load from the same loader that loaded this class.
|
getHelpers | back to summary |
---|---|
public Iterator Get an iterator on the list of project helpers configured. The iterator will always return at least one element as there will always be the default project helper configured.
|
getInstance | back to summary |
---|---|
public static ProjectHelperRepository getInstance() |
getProjectHelperByService | back to summary |
---|---|
private Constructor |
getProjectHelperBySystemProperty | back to summary |
---|---|
private Constructor |
getProjectHelperForAntlib | back to summary |
---|---|
public ProjectHelper getProjectHelperForAntlib(Resource antlib) throws BuildException Get the helper that will be able to parse the specified antlib. The helper will be chosen among the ones found in the classpath
|
getProjectHelperForBuildFile | back to summary |
---|---|
public ProjectHelper getProjectHelperForBuildFile(Resource buildFile) throws BuildException Get the helper that will be able to parse the specified build file. The helper will be chosen among the ones found in the classpath
|
registerProjectHelper | back to summary |
---|---|
public void registerProjectHelper(String helperClassName) throws BuildException Register the specified project helper into the repository. The helper will be added after all the already registered helpers, but before the default one (ProjectHelper2)
|
registerProjectHelper | back to summary |
---|---|
public void registerProjectHelper(Class<? extends ProjectHelper> helperClass) throws BuildException Register the specified project helper into the repository. The helper will be added after all the already registered helpers, but before the default one (ProjectHelper2)
|
registerProjectHelper | back to summary |
---|---|
private void registerProjectHelper(Constructor<? extends ProjectHelper> helperConstructor) |