org.apache.geronimo.gshell.clp.handler
Class Handler<T>

java.lang.Object
  extended by org.apache.geronimo.gshell.clp.handler.Handler<T>
Direct Known Subclasses:
BooleanHandler, DoubleHandler, EnumHandler, FileHandler, IntegerHandler, ObjectHandler, StopHandler, StringHandler, UriHandler

public abstract class Handler<T>
extends Object

Provides the basic mechanism to handle custom option and argument processing.

Version:
$Rev: 570606 $ $Date: 2007-08-28 19:17:11 -0700 (Tue, 28 Aug 2007) $

Field Summary
 Descriptor descriptor
           
 Setter<? super T> setter
           
 
Constructor Summary
protected Handler(Descriptor descriptor, Setter<? super T> setter)
           
 
Method Summary
abstract  String getDefaultMetaVariable()
           
abstract  int handle(Parameters params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

descriptor

public final Descriptor descriptor

setter

public final Setter<? super T> setter
Constructor Detail

Handler

protected Handler(Descriptor descriptor,
                  Setter<? super T> setter)
Method Detail

handle

public abstract int handle(Parameters params)
                    throws ProcessingException
Throws:
ProcessingException

getDefaultMetaVariable

public abstract String getDefaultMetaVariable()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.