org.hyphenType.dynamicproxy
Class AbstractArgumentsInvocationHandler<T extends Options<?>>

java.lang.Object
  extended by org.hyphenType.dynamicproxy.AbstractArgumentsInvocationHandler<T>
Type Parameters:
T - The option interface type.
All Implemented Interfaces:
InvocationHandler
Direct Known Subclasses:
ConcreteArgumentsInvocationHandler, MockArgumentsInvocationHandler

public abstract class AbstractArgumentsInvocationHandler<T extends Options<?>>
extends Object
implements InvocationHandler

Author:
Aurelio Akira M. Matsui

Constructor Summary
AbstractArgumentsInvocationHandler(OptionValues<T> optionValues, Class<? extends Options<?>> optionsInterface, Class<? extends StatusCode> exitCodeEnumClass, String[] rawArguments)
          TODO Comment.
 
Method Summary
 boolean equals(Object obj)
           
protected abstract  void exit(Enum<?> e)
          TODO Comment.
protected abstract  void exit(int code)
          TODO Comment.
 int hashCode()
           
 Object invoke(Object proxy, Method method, Object[] args)
           
protected  void printDocumentation()
          TODO Comment.
protected  void printDocumentation(Class<? extends Annotation> formatterAnnotationClass)
          TODO Comment.
protected  void printDocumentation(Class<? extends Annotation> formatterAnnotationClass, PrintStream printStream)
          TODO Comment.
protected  void printDocumentation(PrintStream printStream)
          TODO Comment.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractArgumentsInvocationHandler

public AbstractArgumentsInvocationHandler(OptionValues<T> optionValues,
                                          Class<? extends Options<?>> optionsInterface,
                                          Class<? extends StatusCode> exitCodeEnumClass,
                                          String[] rawArguments)
TODO Comment.

Parameters:
optionValues - TODO Comment.
formatter - TODO Comment.
exitCodeEnumClass - TODO Comment.
rawArguments - TODO Comment.
Method Detail

invoke

public final Object invoke(Object proxy,
                           Method method,
                           Object[] args)
                    throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

printDocumentation

protected final void printDocumentation()
TODO Comment.


printDocumentation

protected final void printDocumentation(PrintStream printStream)
TODO Comment.

Parameters:
printStream - TODO Comment.

printDocumentation

protected final void printDocumentation(Class<? extends Annotation> formatterAnnotationClass)
TODO Comment.


printDocumentation

protected final void printDocumentation(Class<? extends Annotation> formatterAnnotationClass,
                                        PrintStream printStream)
TODO Comment.

Parameters:
printStream - TODO Comment.

exit

protected abstract void exit(Enum<?> e)
TODO Comment.

Parameters:
e - TODO Comment.

exit

protected abstract void exit(int code)
TODO Comment.

Parameters:
code - TODO Comment.

equals

public final boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public final int hashCode()
Overrides:
hashCode in class Object

toString

public final String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.