@Singleton public class LightModuleDefinitionReader extends Object implements ModuleDefinitionReader
LightModuleDefinitionReader
is capable of finding and reading the light module definitions. The following assumptions/requirements must hold for successful
resolution of such definitions:
LightModuleDefinitionReader.LightModuleDefinition
Modifier and Type | Class and Description |
---|---|
static class |
LightModuleDefinitionReader.LightModuleDefinition
Similar to
ModuleDefinition this class supports only a sub-set of usual module definition properties. |
static class |
LightModuleDefinitionReader.LightModuleDependencyDefinition
DependencyDefinition targeted for light module definitions. |
static class |
LightModuleDefinitionReader.LightModuleVersionHandler
ModuleVersionHandler that doesn't do a thing, not even register a module version in JCR. |
Constructor and Description |
---|
LightModuleDefinitionReader(MagnoliaConfigurationProperties configurationProperties,
Map2BeanTransformer map2BeanTransformer) |
Modifier and Type | Method and Description |
---|---|
ModuleDefinition |
read(Reader in) |
Map<String,ModuleDefinition> |
readAll()
Reads all found module definitions.
|
ModuleDefinition |
readFromResource(String resourcePath) |
@Inject public LightModuleDefinitionReader(MagnoliaConfigurationProperties configurationProperties, Map2BeanTransformer map2BeanTransformer)
public Map<String,ModuleDefinition> readAll() throws ModuleManagementException
ModuleDefinitionReader
readAll
in interface ModuleDefinitionReader
ModuleManagementException
public ModuleDefinition read(Reader in) throws ModuleManagementException
read
in interface ModuleDefinitionReader
ModuleManagementException
public ModuleDefinition readFromResource(String resourcePath) throws ModuleManagementException
readFromResource
in interface ModuleDefinitionReader
ModuleManagementException
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.