public class DefaultMutableModule extends AbstractModule implements MutableModule
MutableModule
implementation, intended for subclassing.Constructor and Description |
---|
DefaultMutableModule() |
DefaultMutableModule(MutableModuleInfo info) |
Modifier and Type | Method and Description |
---|---|
void |
addInput(ModuleItem<?> input)
Adds an input to the list.
|
<T> MutableModuleItem<T> |
addInput(String name,
Class<T> type)
Adds an input to the list.
|
void |
addOutput(ModuleItem<?> output)
Adds an output to the list.
|
<T> MutableModuleItem<T> |
addOutput(String name,
Class<T> type)
Adds an output to the list.
|
MutableModuleInfo |
getInfo()
Gets metadata about this module.
|
void |
removeInput(ModuleItem<?> input)
Removes an input from the list.
|
void |
removeOutput(ModuleItem<?> output)
Removes an output from the list.
|
void |
run() |
cancel, getDelegateObject, getInput, getInputs, getOutput, getOutputs, initialize, isResolved, preview, setInput, setInputs, setOutput, setOutputs, setResolved
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, getDelegateObject, getInput, getInputs, getOutput, getOutputs, initialize, isResolved, preview, setInput, setInputs, setOutput, setOutputs, setResolved
public DefaultMutableModule()
public DefaultMutableModule(MutableModuleInfo info)
public <T> MutableModuleItem<T> addInput(String name, Class<T> type)
MutableModule
addInput
in interface MutableModule
public void addInput(ModuleItem<?> input)
MutableModule
addInput
in interface MutableModule
public <T> MutableModuleItem<T> addOutput(String name, Class<T> type)
MutableModule
addOutput
in interface MutableModule
public void addOutput(ModuleItem<?> output)
MutableModule
addOutput
in interface MutableModule
public void removeInput(ModuleItem<?> input)
MutableModule
removeInput
in interface MutableModule
public void removeOutput(ModuleItem<?> output)
MutableModule
removeOutput
in interface MutableModule
public MutableModuleInfo getInfo()
Module
getInfo
in interface Module
getInfo
in interface MutableModule
Copyright © 2009–2015 SciJava. All rights reserved.