org.crsh.cli.impl.invocation
Class CommandInvoker<C>

java.lang.Object
  extended by org.crsh.cli.impl.invocation.CommandInvoker<C>

public abstract class CommandInvoker<C>
extends Object

Author:
Julien Viet

Constructor Summary
CommandInvoker()
           
 
Method Summary
abstract  Type[] getGenericParameterTypes()
           
abstract  Type getGenericReturnType()
           
abstract  Class<?>[] getParameterTypes()
           
abstract  Class<?> getReturnType()
           
 Object invoke(C command)
           
abstract  Object invoke(Resolver resolver, C command)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandInvoker

public CommandInvoker()
Method Detail

getReturnType

public abstract Class<?> getReturnType()

getGenericReturnType

public abstract Type getGenericReturnType()

getParameterTypes

public abstract Class<?>[] getParameterTypes()

getGenericParameterTypes

public abstract Type[] getGenericParameterTypes()

invoke

public final Object invoke(C command)
                    throws InvocationException,
                           SyntaxException
Throws:
InvocationException
SyntaxException

invoke

public abstract Object invoke(Resolver resolver,
                              C command)
                       throws InvocationException,
                              SyntaxException
Throws:
InvocationException
SyntaxException


Copyright © 2014 eXo Platform SAS. All Rights Reserved.