public class ModuleDefinitionService
extends java.lang.Object
Also adds pagination to find*()
methods of ModuleRegistry
after the fact.
Constructor and Description |
---|
ModuleDefinitionService(WritableModuleRegistry registry,
XDStreamParser parser,
ModuleDependencyRepository dependencyRepository) |
Modifier and Type | Method and Description |
---|---|
ModuleDefinition |
compose(java.lang.String name,
ModuleType typeHint,
java.lang.String dslDefinition,
boolean force) |
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,
byte[] bytes,
boolean force) |
@Autowired public ModuleDefinitionService(WritableModuleRegistry 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, boolean force)
public ModuleDefinition upload(java.lang.String name, ModuleType type, byte[] bytes, boolean force)
public void delete(java.lang.String name, ModuleType type)