Package org.apache.tools.ant.types.spi
Class Service
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.spi.Service
- All Implemented Interfaces:
- Cloneable
ANT Jar-Task SPI extension
- See Also:
- 
Field SummaryFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddConfiguredProvider(Provider provider) Add a nested provider element.voidcheck()Check if this object is configured correctly as a nested element.Return the implementations of this services as an inputstream.getType()voidsetProvider(String className) Set the provider classname.voidSet the service type.Methods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
- 
Constructor Details- 
Servicepublic Service()
 
- 
- 
Method Details- 
setProviderSet the provider classname.- Parameters:
- className- the classname of a provider of this service.
 
- 
addConfiguredProviderAdd a nested provider element.- Parameters:
- provider- a provider element.
 
- 
getType- Returns:
- the service type.
 
- 
setTypeSet the service type.- Parameters:
- type- the service type, a classname of an interface or a class (normally abstract).
 
- 
getAsStreamReturn the implementations of this services as an inputstream.- Returns:
- an inputstream of the classname names encoded as UTF-8.
- Throws:
- IOException- if there is an error.
 
- 
checkpublic void check()Check if this object is configured correctly as a nested element.
 
-