Author: simonetripodi
Date: Tue Apr 5 15:42:08 2011
New Revision: 1089086
URL: http://svn.apache.org/viewvc?rev=1089086&view=rev
Log:
added missing javadoc
Modified:
commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ant/ServiceDiscoveryTask.java
Modified:
commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ant/ServiceDiscoveryTask.java
URL:
http://svn.apache.org/viewvc/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ant/ServiceDiscoveryTask.java?rev=1089086&r1=1089085&r2=1089086&view=diff
==============================================================================
---
commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ant/ServiceDiscoveryTask.java
(original)
+++
commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/ant/ServiceDiscoveryTask.java
Tue Apr 5 15:42:08 2011
@@ -37,18 +37,38 @@ public class ServiceDiscoveryTask {
String[] drivers = null;
- public void setServiceName(String name ) {
+ /**
+ * Sets the service name has to be discovered.
+ *
+ * @param name The service name has to be discovered.
+ */
+ public void setServiceName(String name) {
this.name=name;
}
+ /**
+ * Sets the debug level.
+ *
+ * @param i The debug level
+ */
public void setDebug(int i) {
this.debug=i;
}
+ /**
+ * Returns the discovered SPIs name.
+ *
+ * @return The discovered SPIs name
+ */
public String[] getServiceInfo() {
return drivers;
}
+ /**
+ * Executes the Apache Ant task, discovering the set service name
+ *
+ * @throws Exception if any error occurs
+ */
public void execute() throws Exception {
System.out.printf("Discovering service '%s'...%n", name);