public class ModuleDefinitionService
extends java.lang.Object
Also adds pagination to find*()
methods of ModuleRegistry
after the fact.
Constructor and Description |
---|
ModuleDefinitionService(WriteableModuleRegistry registry,
XDStreamParser parser,
ModuleDependencyRepository dependencyRepository) |
Modifier and Type | Method and Description |
---|---|
ModuleDefinition |
compose(java.lang.String name,
ModuleType typeHint,
java.lang.String dslDefinition) |
void |
delete(java.lang.String name,
ModuleType type) |
ModuleDefinition |
findDefinition(java.lang.String name,
ModuleType type) |
org.springframework.data.domain.Page<ModuleDefinition> |
findDefinitions(org.springframework.data.domain.Pageable pageable) |
org.springframework.data.domain.Page<ModuleDefinition> |
findDefinitions(org.springframework.data.domain.Pageable pageable,
ModuleType type) |
org.springframework.data.domain.Page<ModuleDefinition> |
findDefinitions(org.springframework.data.domain.Pageable pageable,
java.lang.String name) |
ModuleDefinition |
upload(java.lang.String name,
ModuleType type,
org.springframework.core.io.Resource bytes) |
@Autowired public ModuleDefinitionService(WriteableModuleRegistry registry, XDStreamParser parser, ModuleDependencyRepository dependencyRepository)
public ModuleDefinition findDefinition(java.lang.String name, ModuleType type)
public org.springframework.data.domain.Page<ModuleDefinition> findDefinitions(org.springframework.data.domain.Pageable pageable, java.lang.String name)
public org.springframework.data.domain.Page<ModuleDefinition> findDefinitions(org.springframework.data.domain.Pageable pageable, ModuleType type)
public org.springframework.data.domain.Page<ModuleDefinition> findDefinitions(org.springframework.data.domain.Pageable pageable)
public ModuleDefinition compose(java.lang.String name, ModuleType typeHint, java.lang.String dslDefinition)
public ModuleDefinition upload(java.lang.String name, ModuleType type, org.springframework.core.io.Resource bytes)
public void delete(java.lang.String name, ModuleType type)