org.apache.commons.discovery.ant
Class ServiceDiscoveryTask

java.lang.Object
  extended by 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 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

ServiceDiscoveryTask

public ServiceDiscoveryTask()
Method Detail

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


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.