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 forTask
s 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 Path
createClasspath()
ClasspathUtils.Delegate
delegate()
Required state for implementingTask
s.ClasspathDelegateAntTask
delegate(ClasspathUtils.Delegate delegate)
Required state for implementingTask
s.default Class<?>
getClassForName(String name)
Method to get theClass
associated with the argument name using theClassLoader
provided bygetClassLoader()
.default AntClassLoader
getClassLoader()
default void
init()
Default implementation forTask
subclasses.default void
setClassname(String name)
default void
setClasspathref(Reference reference)
-
-
-
Method Detail
-
delegate
ClasspathUtils.Delegate delegate()
Required state for implementingTask
s. Refer to the discussion inClasspathUtils
.- Returns:
- The
ClasspathUtils.Delegate
instance created in theTask.init()
method.
-
delegate
ClasspathDelegateAntTask delegate(ClasspathUtils.Delegate delegate)
Required state for implementingTask
s. Refer to the discussion inClasspathUtils
.- Parameters:
delegate
- TheClasspathUtils.Delegate
.- Returns:
- The
this
.
-
init
default void init() throws BuildException
Default implementation forTask
subclasses.- Throws:
BuildException
-
setClasspathref
default void setClasspathref(Reference reference)
- Parameters:
reference
- TheReference
to 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 theClass
associated with the argument name using theClassLoader
provided bygetClassLoader()
.- Parameters:
name
- The fully qualified name of the desired class.- Returns:
- The
Class
for the specified name. - Throws:
ClassNotFoundException
- If theClass
is not found.
-
-