org.oddjob.script
Interface InvokerArguments

All Known Implementing Classes:
ConvertableArguments

public interface InvokerArguments

Arguments for passing to an Invoker.

Author:
rob

Method Summary
<T> T
getArgument(int index, Class<T> type)
          Get the argument.
 int size()
          The number of arguments.
 

Method Detail

size

int size()
The number of arguments.

Returns:
The number, 0 or greater.

getArgument

<T> T getArgument(int index,
                  Class<T> type)
              throws ArooaConversionException
Get the argument.

Parameters:
index - The 0 based index of the argument.
type - The type the argument should be.
Returns:
An argument of the correct type. May be null.
Throws:
ArooaConversionException - If an argument of the correct type can not be provided.