View Javadoc
1   package org.cyclopsgroup.jmxterm;
2   
3   import java.util.Map;
4   
5   /**
6    * Factory which create Command instance based on command name
7    * 
8    * @author <a href="mailto:jiaqi.guo@gmail.com">Jiaqi Guo</a>
9    */
10  public interface CommandFactory {
11    /**
12     * Create new command instance
13     * 
14     * @param name Command name
15     * @return New instance of command object
16     */
17    Command createCommand(String name);
18  
19    /**
20     * @return Map of command types
21     */
22    Map<String, Class<? extends Command>> getCommandTypes();
23  }