org.apache.tools.ant.types.spi
public class Service extends ProjectComponent
See Also:
http://issues.apache.org/bugzilla/show_bug.cgi?id=31520
Method Summary | |
---|---|
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. |
Parameters: provider a provider element.
Returns: an inputstream of the classname names encoded as UTF-8.
Throws: IOException if there is an error.
Returns: the service type.
Parameters: className the classname of a provider of this service.
Parameters: type the service type, a classname of an interface or a class (normally abstract).