org.apache.tools.ant.types.spi
Class Service
- Cloneable
ANT Jar-Task SPI extension
void | addConfiguredProvider(Provider provider) - Add a nested provider element.
|
void | check() - Check if this object is configured correctly as a nested
element.
|
InputStream | getAsStream() - Return the implementations of this
services as an inputstream.
|
String | getType()
|
void | setProvider(String className) - Set the provider classname.
|
void | setType(String type) - Set the service type.
|
addConfiguredProvider
public void addConfiguredProvider(Provider provider)
Add a nested provider element.
provider
- a provider element.
check
public void check()
Check if this object is configured correctly as a nested
element.
getAsStream
public InputStream getAsStream()
throws IOException
Return the implementations of this
services as an inputstream.
- an inputstream of the classname names
encoded as UTF-8.
getType
public String getType()
setProvider
public void setProvider(String className)
Set the provider classname.
className
- the classname of a provider of this service.
setType
public void setType(String type)
Set the service type.
type
- the service type, a classname of
an interface or a class (normally
abstract).