FreeHEP API
Version current

org.freehep.util.commanddispatcher
Class CommandTargetManager

java.lang.Object
  extended byorg.freehep.util.commanddispatcher.CommandTargetManager
Direct Known Subclasses:
Application.ApplicationCommandTargetManager

public class CommandTargetManager
extends Object

A CommandTargetManager manages a set of CommandSources and a set of CommandGroups, and figure out the wiring from the CommandSources to the CommandTargets within the CommandGroups. The CommandGroups can be dynamically added and removed from the CommandTargetManager, as sets of commands become available or not.

Version:
$Id:
Author:
Tony Johnson (tonyj@slac.stanford.edu)
Source Code:
CommandTargetManager.java

Constructor Summary
CommandTargetManager()
           
 
Method Summary
 void add(CommandGroup group)
           
 void add(CommandSource source)
           
 void dump(PrintStream out)
          Dump the state of the manager for debug purposes
 void handleCommandError(Throwable x)
          Override this method to provide custom handling of errors generated during command processing.
 void remove(CommandGroup group)
           
 void remove(CommandSource source)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandTargetManager

public CommandTargetManager()
Method Detail

add

public void add(CommandGroup group)

add

public void add(CommandSource source)

handleCommandError

public void handleCommandError(Throwable x)
Override this method to provide custom handling of errors generated during command processing.


remove

public void remove(CommandGroup group)

remove

public void remove(CommandSource source)

start

public void start()

dump

public void dump(PrintStream out)
Dump the state of the manager for debug purposes


FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.