org.jaffa.rules.metadata
Class RulesMetaDataService
java.lang.Object
org.jaffa.rules.metadata.RulesMetaDataService
- public class RulesMetaDataService
- extends Object
This parses the Rules config file and creates instances of the ClassMetaData class. These instances are cached.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VARIATION_FILE_SUFFIX
public static final String VARIATION_FILE_SUFFIX
- See Also:
- Constant Field Values
RulesMetaDataService
public RulesMetaDataService()
getClassMetaData
public static ClassMetaData getClassMetaData(String className,
String variation)
throws SAXException,
IOException
- Returns an instance of ClassMetaData for the given name. A null will be returned in case no definition is found in the Rules Config file.
- Parameters:
className - The class for which the XML will be parsed.variation - This will determine the Rules config file to be parsed. If a null is passed, then the core file will be parsed.
- Returns:
- an instance of ClassMetaData.
- Throws:
SAXException - If any exception is thrown while parsing the XML file.
IOException - If any I/O error occurs in reading the XML file. Note: A FileNotFoundException will be thrown, in case the file is not found.
clearCache
public static void clearCache()
clearCache
public static void clearCache(String variation)
main
public static void main(String[] args)
Copyright © 2002-2004 JAFFA Project.