@AptModule public class HelpModule extends AbstractModule implements Module
| Constructor and Description |
|---|
HelpModule() |
| Modifier and Type | Method and Description |
|---|---|
Category[] |
getCategories()
Returns the categories the module belongs to.
|
java.lang.String |
getName()
Returns the name of the module.
|
java.lang.String |
getShortDescription()
Returns a short description of the module.
|
void |
provide(ModuleOutputSpec outputSpec)
Specify the return values of the module.
|
void |
require(ModuleInputSpec inputSpec)
Specify the parameters of the module.
|
void |
run(ModuleInput input,
ModuleOutput output)
Perform some computation on the values stored in the
ModuleInput
object and store the results in the ModuleOutput object. |
getLongDescription, getTitleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLongDescription, getTitlepublic java.lang.String getName()
Modulepublic void require(ModuleInputSpec inputSpec)
ModuleModuleInputSpec.addParameter(String, Class, String, String...) method can
be used. The order of specified parameters matters.public void provide(ModuleOutputSpec outputSpec)
ModuleModuleOutputSpec.addReturnValue(String, Class, String...) method
can be used. The order of specified return values matters.public void run(ModuleInput input, ModuleOutput output) throws ModuleException
ModuleModuleInput
object and store the results in the ModuleOutput object.
To retrieve values from ModuleInput object the
ModuleInput.getParameter(String, Class) method can be used.
To store values in the ModuleOutput object the
ModuleOutput.setReturnValue(String, Class, Object) method can be
used.
The possible values in both the ModuleInput and
ModuleOutput object are determined entirely by the specifications
in the Module.require(ModuleInputSpec) and
Module.provide(ModuleOutputSpec) method respectively.run in interface Moduleinput - storage of the inputsoutput - storage of the outputsModuleException - On various kinds of errors that prevent the module from working.public java.lang.String getShortDescription()
ModuleAbstractModule returns an empty string.getShortDescription in interface ModulegetShortDescription in class AbstractModulepublic Category[] getCategories()
ModulegetCategories in interface Module