info.magnolia.module.model.reader
Class BetwixtModuleDefinitionReader

java.lang.Object
  extended by info.magnolia.module.model.reader.BetwixtModuleDefinitionReader
All Implemented Interfaces:
ModuleDefinitionReader

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

Constructor Summary
BetwixtModuleDefinitionReader()
           
 
Method Summary
protected  String[] findModuleDescriptors()
           
 ModuleDefinition read(Reader in)
           
 Map<String,ModuleDefinition> readAll()
          Reads all found module definitions.
 ModuleDefinition readFromResource(String resourcePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BetwixtModuleDefinitionReader

public BetwixtModuleDefinitionReader()
Method Detail

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-2012 Magnolia International Ltd.. All Rights Reserved.