Method Summary |
|
protected void | addDefinition(ClassLoader al, String name, String classname) |
public void | execute() Run the definition. |
public String | getClassname() Returns the classname of the object we are defining. |
public File | getFile() |
public String | getName() |
public String | getResource() |
protected void | loadProperties(ClassLoader al, URL url) Load type definitions as properties from a URL. |
public static String | makeResourceFromURI(String uri) This is where the logic to map from a URI to an antlib resource
is kept.
Parameters: uri - the xml namespace uri that to convert. |
public void | setAdaptTo(String adaptTo) Set the classname of the class that the definition
must be compatible with, either directly or
by use of the adapter class. |
protected void | setAdaptToClass(Class adaptToClass) Set the class for adaptToClass, to be
used by derived classes, used instead of
the adaptTo attribute. |
public void | setAdapter(String adapter) Set the class name of the adapter class.
An adapter class is used to proxy the
definition class. |
protected void | setAdapterClass(Class adapterClass) Set the adapter class. |
public void | setAntlib(String antlib) Antlib attribute, sets resource and uri. |
public void | setClassname(String classname) The full class name of the object being defined. |
public void | setFile(File file) Name of the property file to load
ant name/classname pairs from. |
public void | setFormat(Format format) |
public void | setName(String name) |
public void | setOnError(OnError onError) What to do if there is an error in loading the class. |
public void | setResource(String res) Name of the property resource to load
ant name/classname pairs from. |