Package owl.run.modules
Class OwlModuleRegistry
- java.lang.Object
-
- owl.run.modules.OwlModuleRegistry
-
public class OwlModuleRegistry extends Object
A registry holding all modules used to parse the command line. These can be dynamically registered to allow for flexible parsing of command lines.- See Also:
PipelineParser
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OwlModuleRegistry.OwlModuleNotFoundException
static class
OwlModuleRegistry.Type
-
Field Summary
Fields Modifier and Type Field Description static OwlModuleRegistry
DEFAULT_REGISTRY
A preconfiguredregistry
, holding commonly used utility modules.
-
Constructor Summary
Constructors Constructor Description OwlModuleRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<OwlModuleRegistry.Type,OwlModule<?>>
get(String name)
Collection<OwlModule<?>>
get(OwlModuleRegistry.Type type)
OwlModule<OwlModule.InputReader>
getReader(String name)
OwlModule<OwlModule.Transformer>
getTransformer(String name)
OwlModule<OwlModule.OutputWriter>
getWriter(String name)
void
putReaders(List<OwlModule<OwlModule.InputReader>> modules)
void
putTransformers(List<OwlModule<OwlModule.Transformer>> modules)
void
registerWriter(List<OwlModule<OwlModule.OutputWriter>> modules)
OwlModuleRegistry.Type
type(OwlModule<?> object)
-
-
-
Field Detail
-
DEFAULT_REGISTRY
public static final OwlModuleRegistry DEFAULT_REGISTRY
A preconfiguredregistry
, holding commonly used utility modules.
-
-
Method Detail
-
getReader
public OwlModule<OwlModule.InputReader> getReader(String name) throws OwlModuleRegistry.OwlModuleNotFoundException
-
getTransformer
public OwlModule<OwlModule.Transformer> getTransformer(String name) throws OwlModuleRegistry.OwlModuleNotFoundException
-
getWriter
public OwlModule<OwlModule.OutputWriter> getWriter(String name) throws OwlModuleRegistry.OwlModuleNotFoundException
-
get
public Collection<OwlModule<?>> get(OwlModuleRegistry.Type type)
-
get
public Map<OwlModuleRegistry.Type,OwlModule<?>> get(String name)
-
type
public OwlModuleRegistry.Type type(OwlModule<?> object)
-
putReaders
public void putReaders(List<OwlModule<OwlModule.InputReader>> modules)
-
putTransformers
public void putTransformers(List<OwlModule<OwlModule.Transformer>> modules)
-
registerWriter
public void registerWriter(List<OwlModule<OwlModule.OutputWriter>> modules)
-
-