|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.discovery.ant.ServiceDiscoveryTask
public class 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 | |
---|---|
ServiceDiscoveryTask()
|
Method Summary | |
---|---|
void |
execute()
Executes the Apache Ant task, discovering the set service name |
String[] |
getServiceInfo()
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceDiscoveryTask()
Method Detail |
---|
public void setServiceName(String name)
name
- The service name has to be discovered.public void setDebug(int i)
i
- The debug levelpublic String[] getServiceInfo()
public void execute() throws Exception
Exception
- if any error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |