Class ServiceDiscoveryTask

java.lang.Object
org.apache.commons.discovery.ant.ServiceDiscoveryTask

public class ServiceDiscoveryTask extends 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 Details

  • Method Details

    • setServiceName

      public void setServiceName(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 String[] getServiceInfo()
      Returns the discovered SPIs name.
      Returns:
      The discovered SPIs name
    • execute

      public void execute() throws Exception
      Executes the Apache Ant task, discovering the set service name
      Throws:
      Exception - if any error occurs