|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ModuleInterface
The interface of a module implementation - the entry class of a PipeT module must implement this interface.
A ModuleInterface is used to access a module, but is stateless, meaning that it does not store any configuration and it is not affected by any previous calls. A ModuleAttributes object is used to pass the module's configuration to methods which may require this.
There are several predefined classes with some generic features:
DefaultModuleInterface is a dummy ModuleInterface; a meaningful subclass implements ModuleInterface.createInstance() and probably also overrides one or more other methods.ConfigurableModuleInterface is a ModuleInterface which implements some basic configuration features, saving the trouble of creating a configuration interface.
DefaultModuleInterface,
ConfigurableModuleInterface,
ModuleAttributes,
ModuleData| Nested Class Summary | |
|---|---|
static interface |
ModuleInterface.ModuleConfigurator
Interface for module configuration. |
static interface |
ModuleInterface.ModuleInstance
Interface of a module instance. |
| Field Summary | |
|---|---|
static String |
ATT_PIPELINE_NAME
|
static ModuleInterface.ModuleConfigurator |
FAIL_CONFIGURATOR
|
static int |
UI_GUI
|
static int |
UI_NONINTERACTIVE
|
| Field Detail |
|---|
static final String ATT_PIPELINE_NAME
static final int UI_NONINTERACTIVE
static final int UI_GUI
static final ModuleInterface.ModuleConfigurator FAIL_CONFIGURATOR
| Method Detail |
|---|
boolean isAvailable()
String getAPIVersionString()
String getTitle(ModuleAttributes atts)
throws ResourceException
atts - The module data.
ResourceException
String getDescription(ModuleAttributes atts)
throws ResourceException
atts - The module data.
ResourceException
Map<String,String> getOutputPipeTypes(ModuleAttributes atts)
throws ResourceException
atts - The module attributes.
ResourceException
Map<String,String> getInputPipeTypes(ModuleAttributes atts)
throws ResourceException
atts - The module data.
ResourceException
@Deprecated
Collection<String> getOutputPipeNames(ModuleAttributes atts)
throws ResourceException
ResourceException
@Deprecated
Collection<String> getInputPipeNames(ModuleAttributes atts)
throws ResourceException
ResourceException
Map<String,ParameterType<?>> getGlobalParameters(ModuleAttributes atts)
throws ResourceException
ResourceException
Map<String,ParameterType<?>> getPipelineParameters(ModuleAttributes atts)
throws ResourceException
ResourceException
Map<String,ParameterType<?>> getRuntimeParameters(ModuleAttributes atts)
throws ResourceException
ResourceException
ModuleInterface.ModuleConfigurator getInstallationConfigurator(int interface_type)
throws ResourceException
interface_type - the type of user interface, which is one of: UI_NONINTERACTIVE, UI_GUI.
ResourceException
ModuleInterface.ModuleConfigurator getPipelineConfigurator(int interface_type)
throws ResourceException
interface_type - the type of user interface, which is one of: UI_NONINTERACTIVE, UI_GUI.
ResourceException
ModuleInterface.ModuleConfigurator getRuntimeConfigurator(int interface_type)
throws ResourceException
interface_type - the type of user interface, which is one of: UI_NONINTERACTIVE, UI_GUI.
ModuleInterface.ModuleConfigurator object, or null if the module is not runtime configurable.
ResourceException
ModuleInterface.ModuleInstance createInstance(ModuleData data,
net.sf.qxs.messenger.Messenger logger)
throws Exception
data - an object which provides access to runtime data needed by the module.logger - a logging interface.
Exception - if an unexpected error occurred.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||