Package org.apache.commons.discovery.ant
Class ServiceDiscoveryTask
java.lang.Object
org.apache.commons.discovery.ant.ServiceDiscoveryTask
Small ant task that will use discovery to locate a particular impl.
and display all values.
You can execute this and save it with an id, then other classes can use it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Executes the Apache Ant task, discovering the set service nameString[]
Returns the discovered SPIs name.void
setDebug
(int i) Sets the debug level.void
setServiceName
(String name) Sets the service name has to be discovered.
-
Constructor Details
-
ServiceDiscoveryTask
public ServiceDiscoveryTask()
-
-
Method Details
-
setServiceName
Sets the service name has to be discovered.- Parameters:
name
- The service name has to be discovered.
-
setDebug
Sets the debug level.- Parameters:
i
- The debug level
-
getServiceInfo
Returns the discovered SPIs name.- Returns:
- The discovered SPIs name
-
execute
Executes the Apache Ant task, discovering the set service name- Throws:
Exception
- if any error occurs
-