org.apache.geronimo.system.plugin
Class PluginXmlUtil
java.lang.Object
org.apache.geronimo.system.plugin.PluginXmlUtil
public class PluginXmlUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLINPUT_FACTORY
public static final XMLInputFactory XMLINPUT_FACTORY
PLUGIN_CONTEXT
public static final JAXBContext PLUGIN_CONTEXT
PLUGIN_LIST_CONTEXT
public static final JAXBContext PLUGIN_LIST_CONTEXT
PLUGIN_ARTIFACT_CONTEXT
public static final JAXBContext PLUGIN_ARTIFACT_CONTEXT
PluginXmlUtil
public PluginXmlUtil()
writePluginMetadata
public static void writePluginMetadata(PluginType metadata,
OutputStream out)
throws XMLStreamException,
JAXBException
- Throws:
XMLStreamException
JAXBException
writePluginList
public static void writePluginList(PluginListType metadata,
Writer out)
throws XMLStreamException,
JAXBException
- Throws:
XMLStreamException
JAXBException
loadPluginMetadata
public static PluginType loadPluginMetadata(InputStream in)
throws SAXException,
MalformedURLException,
JAXBException,
XMLStreamException
- Read a set of plugin metadata from a DOM document.
- Throws:
SAXException
MalformedURLException
JAXBException
XMLStreamException
loadPluginArtifactMetadata
public static PluginArtifactType loadPluginArtifactMetadata(Reader in)
throws SAXException,
MalformedURLException,
JAXBException,
XMLStreamException,
ParserConfigurationException
- Throws:
SAXException
MalformedURLException
JAXBException
XMLStreamException
ParserConfigurationException
loadPluginList
public static PluginListType loadPluginList(InputStream in)
throws ParserConfigurationException,
IOException,
SAXException,
JAXBException,
XMLStreamException
- Loads the list of all available plugins from the specified stream
(representing geronimo-plugins.xml at the specified repository).
- Throws:
ParserConfigurationException
IOException
SAXException
JAXBException
XMLStreamException
Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.