public class ModuleDefinitions
extends java.lang.Object
ModuleDefinition
s.Modifier and Type | Method and Description |
---|---|
static CompositeModuleDefinition |
composed(java.lang.String name,
ModuleType type,
java.lang.String dslDefinition,
java.util.List<ModuleDefinition> children)
Create a new definition for a composed module (one where its behavior comes not from its own 'code', but from
composing pre-existing modules).
|
static SimpleModuleDefinition |
simple(java.lang.String name,
ModuleType type,
java.lang.String location)
Create a new definition for a simple module (one where its implementation code can be located).
|
public static SimpleModuleDefinition simple(java.lang.String name, ModuleType type, java.lang.String location)
name
- the name of the moduletype
- the type of the modulelocation
- where the 'code' for the module can be foundpublic static CompositeModuleDefinition composed(java.lang.String name, ModuleType type, java.lang.String dslDefinition, java.util.List<ModuleDefinition> children)
name
- the name of the moduletype
- the type of the moduledslDefinition
- the definition that was used to create the module, in Spring XD DSLchildren
- information about the child modules that make up the composed module