public class XDStreamParser extends java.lang.Object implements XDParser
ModuleDescriptor
objects that comprise the given stream.Modifier and Type | Class and Description |
---|---|
static class |
XDStreamParser.MultiLineDocumentParser
A wrapper around the canonical parser that supports multiline "document" parsing.
|
Constructor and Description |
---|
XDStreamParser(org.springframework.data.repository.CrudRepository<? extends BaseDefinition,java.lang.String> repository,
ModuleRegistry moduleRegistry,
ModuleOptionsMetadataResolver moduleOptionsMetadataResolver)
Construct an
XDStreamParser . |
XDStreamParser(ModuleRegistry moduleRegistry,
ModuleOptionsMetadataResolver moduleOptionsMetadataResolver)
Construct an
XDStreamParser . |
Modifier and Type | Method and Description |
---|---|
java.util.List<ModuleDescriptor> |
parse(java.lang.String name,
java.lang.String config,
ParsingContext parsingContext)
Parse a DSL string.
|
public XDStreamParser(org.springframework.data.repository.CrudRepository<? extends BaseDefinition,java.lang.String> repository, ModuleRegistry moduleRegistry, ModuleOptionsMetadataResolver moduleOptionsMetadataResolver)
XDStreamParser
.repository
- repository for stream definitions (optional)moduleRegistry
- registry for modulesmoduleOptionsMetadataResolver
- resolver for module options metadatapublic XDStreamParser(ModuleRegistry moduleRegistry, ModuleOptionsMetadataResolver moduleOptionsMetadataResolver)
XDStreamParser
.moduleRegistry
- registry for modulesmoduleOptionsMetadataResolver
- resolver for module options metadatapublic java.util.List<ModuleDescriptor> parse(java.lang.String name, java.lang.String config, ParsingContext parsingContext)
XDParser
parse
in interface XDParser
name
- name of the deployable unit, such as a stream or jobconfig
- the DSL stringparsingContext
- the context under which the parsing is occurring
(for example, is it a stream, module, or job being
parsed, how far into the DSL has parsing occurred, etc)ModuleDescriptor
that reflect the modules required for the deployable unit
described by the DSL.