Class 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()
      Executes the Apache Ant task, discovering the set service name
      java.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ServiceDiscoveryTask

        public ServiceDiscoveryTask()
    • 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