org/sonews/daemon/CommandSelector.java
changeset 28 15d14b110240
parent 21 4b2c8bedb094
     1.1 --- a/org/sonews/daemon/CommandSelector.java	Mon Aug 24 14:40:37 2009 +0200
     1.2 +++ b/org/sonews/daemon/CommandSelector.java	Sat May 01 14:27:30 2010 +0200
     1.3 @@ -20,6 +20,7 @@
     1.4  
     1.5  import java.util.HashMap;
     1.6  import java.util.Map;
     1.7 +import java.util.Set;
     1.8  import java.util.concurrent.ConcurrentHashMap;
     1.9  import org.sonews.daemon.command.Command;
    1.10  import org.sonews.daemon.command.UnsupportedCommand;
    1.11 @@ -81,6 +82,11 @@
    1.12      }
    1.13    }
    1.14  
    1.15 +  public static Set<String> getCommandNames()
    1.16 +  {
    1.17 +    return commandClassesMapping.keySet();
    1.18 +  }
    1.19 +
    1.20    public static CommandSelector getInstance()
    1.21    {
    1.22      CommandSelector csel = instances.get(Thread.currentThread());