public class XDStreamParser extends java.lang.Object implements XDParser
ModuleDescriptor
objects that comprise the given stream.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)
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.