public class ServicePreprocessor extends AbstractPreprocessorPlugin
Service
.
Services are obtained from this preprocessor instance's application context.
Many modules (e.g., most Command
s) use @Parameter
-annotated
service fields, resulting in those parameters being populated when the
SciJava application context is injected (via Context.inject(Object)
).
However, some modules may have service parameters which are programmatically
generated (i.e., returned directly as inputs from ModuleInfo.inputs()
and as such not populated by context injection. E.g., this situation is the
case for scripts, since module inputs are parsed from the script header
rather than declared via the @Parameter
annotation. In such cases, we
need this service preprocessor to fill in the service values.
Constructor and Description |
---|
ServicePreprocessor() |
Modifier and Type | Method and Description |
---|---|
void |
process(Module module)
Performs a processing step on the given module instance.
|
cancel, getCancelReason, isCanceled
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
context, getContext, setContext
public void process(Module module)
ModuleProcessor
Copyright © 2015–2022 SciJava. All rights reserved.