ProgramixGenericLib v5.0.1

com.programix.command
Class DelegatingCommandProcessor

java.lang.Object
  extended by com.programix.command.DelegatingCommandProcessor
All Implemented Interfaces:
CommandProcessor

public abstract class DelegatingCommandProcessor
extends Object
implements CommandProcessor


Constructor Summary
DelegatingCommandProcessor()
           
 
Method Summary
 void close()
           
protected  void customClose()
           
protected  void customInit(ValueMap config)
          Overridden in subclasses that need to perform any custom initialization.
 void delegate(Class<? extends CommandRequest> requestClass, CommandProcessor handler)
           
 void init(ValueMap config)
           
 CommandResponse process(CommandRequest req)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingCommandProcessor

public DelegatingCommandProcessor()
Method Detail

init

public final void init(ValueMap config)
                throws CommandException
Specified by:
init in interface CommandProcessor
Throws:
CommandException

customInit

protected void customInit(ValueMap config)
                   throws CommandException
Overridden in subclasses that need to perform any custom initialization.

Parameters:
config - the configuration settings
Throws:
CommandException - subclasses can throw this to indicate trouble

close

public final void close()
Specified by:
close in interface CommandProcessor

customClose

protected void customClose()

delegate

public final void delegate(Class<? extends CommandRequest> requestClass,
                           CommandProcessor handler)

process

public final CommandResponse process(CommandRequest req)
                              throws CommandException
Specified by:
process in interface CommandProcessor
Throws:
CommandException

ProgramixGenericLib v5.0.1

Copyright © 2001-2009 Programix Incorporated. All rights reserved. ProgramixGenericLib is free and is OSI Certified Open Source Software under the BSD license.