Package ball.util.ant.taskdefs
Interface ClasspathDelegateAntTask
-
- All Superinterfaces:
AntTaskMixIn
- All Known Implementing Classes:
CombinationsTask,CombinationsTask.Count,CombinationsTask.Of,InstanceOfTask,PatternTask,PatternTask.Matches,PatternTask.Split,PermutationsTask,PermutationsTask.Count,PermutationsTask.Of,PreferencesTask,PreferencesTask.Export,ProcessClassFilesTask,StreamTokenizerTask,StreamTokenizerTask.FromString,TypeTask,TypeTask.BeanInfoFor,TypeTask.IsAssignableFrom,TypeTask.MembersOf,TypeTask.ResourcePathTo,TypeTask.SuperclassesOf,XPathEvaluateTask
public interface ClasspathDelegateAntTask extends AntTaskMixIn
Interface to provide common default methods forTasks that implement the syntax described inClasspathUtils.Delegate.- Author:
- Allen D. Ball
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PathcreateClasspath()ClasspathUtils.Delegatedelegate()Required state for implementingTasks.ClasspathDelegateAntTaskdelegate(ClasspathUtils.Delegate delegate)Required state for implementingTasks.default Class<?>getClassForName(String name)Method to get theClassassociated with the argument name using theClassLoaderprovided bygetClassLoader().default AntClassLoadergetClassLoader()default voidinit()Default implementation forTasksubclasses.default voidsetClassname(String name)default voidsetClasspathref(Reference reference)
-
-
-
Method Detail
-
delegate
ClasspathUtils.Delegate delegate()
Required state for implementingTasks. Refer to the discussion inClasspathUtils.- Returns:
- The
ClasspathUtils.Delegateinstance created in theTask.init()method.
-
delegate
ClasspathDelegateAntTask delegate(ClasspathUtils.Delegate delegate)
Required state for implementingTasks. Refer to the discussion inClasspathUtils.- Parameters:
delegate- TheClasspathUtils.Delegate.- Returns:
- The
this.
-
init
default void init() throws BuildException
Default implementation forTasksubclasses.- Throws:
BuildException
-
setClasspathref
default void setClasspathref(Reference reference)
- Parameters:
reference- TheReferenceto the classpath.
-
createClasspath
default Path createClasspath()
- Returns:
- The created
Path.
-
setClassname
default void setClassname(String name)
- Parameters:
name- The class name (String).
-
getClassLoader
default AntClassLoader getClassLoader()
- Returns:
- The
AntClassLoader.
-
getClassForName
default Class<?> getClassForName(String name) throws ClassNotFoundException
Method to get theClassassociated with the argument name using theClassLoaderprovided bygetClassLoader().- Parameters:
name- The fully qualified name of the desired class.- Returns:
- The
Classfor the specified name. - Throws:
ClassNotFoundException- If theClassis not found.
-
-