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,
ModuleDefinitionRepository moduleDefinitionRepository,
ModuleOptionsMetadataResolver moduleOptionsMetadataResolver)
Construct an
XDStreamParser . |
XDStreamParser(ModuleDefinitionRepository moduleDefinitionRepository,
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, ModuleDefinitionRepository moduleDefinitionRepository, ModuleOptionsMetadataResolver moduleOptionsMetadataResolver)
XDStreamParser
.repository
- repository for stream definitions (optional)moduleDefinitionRepository
- repository for user defined modulesmoduleOptionsMetadataResolver
- resolver for module options metadatapublic XDStreamParser(ModuleDefinitionRepository moduleDefinitionRepository, ModuleOptionsMetadataResolver moduleOptionsMetadataResolver)
XDStreamParser
.moduleDefinitionRepository
- repository for user defined 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.