Package org.apache.commons.discovery.ant
Class ServiceDiscoveryTask
- java.lang.Object
-
- org.apache.commons.discovery.ant.ServiceDiscoveryTask
-
public class ServiceDiscoveryTask extends java.lang.Object
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 Constructor Description ServiceDiscoveryTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Executes the Apache Ant task, discovering the set service namejava.lang.String[]
getServiceInfo()
Returns the discovered SPIs name.void
setDebug(int i)
Sets the debug level.void
setServiceName(java.lang.String name)
Sets the service name has to be discovered.
-
-
-
Method Detail
-
setServiceName
public void setServiceName(java.lang.String name)
Sets the service name has to be discovered.- Parameters:
name
- The service name has to be discovered.
-
setDebug
public void setDebug(int i)
Sets the debug level.- Parameters:
i
- The debug level
-
getServiceInfo
public java.lang.String[] getServiceInfo()
Returns the discovered SPIs name.- Returns:
- The discovered SPIs name
-
execute
public void execute() throws java.lang.Exception
Executes the Apache Ant task, discovering the set service name- Throws:
java.lang.Exception
- if any error occurs
-
-