info.magnolia.module.model.reader
Class BetwixtModuleDefinitionReader
java.lang.Object
info.magnolia.module.model.reader.BetwixtModuleDefinitionReader
- All Implemented Interfaces:
- ModuleDefinitionReader
@Singleton
public class BetwixtModuleDefinitionReader
- extends Object
- implements ModuleDefinitionReader
This implementation of ModuleDefinitionReader uses Betwixt to read and convert module
descriptor files.
- Version:
- $Revision: $ ($Author: $)
- Author:
- gjoseph
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BetwixtModuleDefinitionReader
public BetwixtModuleDefinitionReader()
readAll
public Map<String,ModuleDefinition> readAll()
throws ModuleManagementException
- Description copied from interface:
ModuleDefinitionReader
- Reads all found module definitions.
- Specified by:
readAll
in interface ModuleDefinitionReader
- Returns:
- a Map where the key is the module name.
- Throws:
ModuleManagementException
findModuleDescriptors
protected String[] findModuleDescriptors()
read
public ModuleDefinition read(Reader in)
throws ModuleManagementException
- Specified by:
read
in interface ModuleDefinitionReader
- Throws:
ModuleManagementException
readFromResource
public ModuleDefinition readFromResource(String resourcePath)
throws ModuleManagementException
- Specified by:
readFromResource
in interface ModuleDefinitionReader
- Throws:
ModuleManagementException
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.