org.talika.tarsis.command.factory.xml
Class XmlCommandPackageLoader
java.lang.Object
org.talika.tarsis.command.factory.xml.XmlCommandPackageLoader
public final class XmlCommandPackageLoader
- extends java.lang.Object
Utility class that permits load command definitions of a package definition file.
- Version:
- $Revision: 269 $
- Author:
- Jose M. Palomar
Method Summary |
java.util.Map |
load(java.lang.String packageName,
java.lang.String fileName)
Loads command definitions of a package from a given file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlCommandPackageLoader
public XmlCommandPackageLoader(Context context)
- Creatres a new
XmlCommandPackageLoader
for a given Tarsis
context.
- Parameters:
context
- Context Tarsis context.
load
public java.util.Map load(java.lang.String packageName,
java.lang.String fileName)
throws org.xml.sax.SAXException,
java.io.IOException,
javax.xml.parsers.ParserConfigurationException
- Loads command definitions of a package from a given file.
- Parameters:
packageName
- String package name.fileName
- String command definitions file which contains package
definition.
- Returns:
- Map map of commands.
- Throws:
org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.
java.io.IOException
- If there is an error setting up the input source.
javax.xml.parsers.ParserConfigurationException
- if a parser cannot be created which
satisfies the requested configuration.
Copyright © 2002-2012 Talika Open Source Group. All Rights Reserved.