add list method

This commit is contained in:
Doug MacEachern 2005-06-26 03:21:28 +00:00
parent 1fabb41896
commit c38c868c35
1 changed files with 13 additions and 0 deletions

View File

@ -1,5 +1,8 @@
package net.hyperic.sigar.win32; package net.hyperic.sigar.win32;
import java.io.PrintStream;
import java.util.Arrays;
public class ServiceConfig { public class ServiceConfig {
// Start type // Start type
@ -246,4 +249,14 @@ public class ServiceConfig {
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public void list(PrintStream out) {
out.println("name..........[" + getName() + "]");
out.println("display.......[" + getDisplayName() + "]");
out.println("description...[" + getDescription() + "]");
out.println("path..........[" + getPath() + "]");
out.println("deps.........." + Arrays.asList(getDependencies()));
out.println("type..........[" + getType() + "]");
out.println("start type....[" + getStartType() + "]");
}
} }