org.apache.geronimo.system.plugin
Class PluginXmlUtil

java.lang.Object
  extended by org.apache.geronimo.system.plugin.PluginXmlUtil

public class PluginXmlUtil
extends Object


Nested Class Summary
static class PluginXmlUtil.NamespaceFilter
           
 
Field Summary
static JAXBContext PLUGIN_ARTIFACT_CONTEXT
           
static JAXBContext PLUGIN_CONTEXT
           
static JAXBContext PLUGIN_LIST_CONTEXT
           
static XMLInputFactory XMLINPUT_FACTORY
           
 
Constructor Summary
PluginXmlUtil()
           
 
Method Summary
static PluginArtifactType loadPluginArtifactMetadata(Reader in)
           
static PluginListType loadPluginList(InputStream in)
          Loads the list of all available plugins from the specified stream (representing geronimo-plugins.xml at the specified repository).
static PluginType loadPluginMetadata(InputStream in)
          Read a set of plugin metadata from a DOM document.
static void writePluginList(PluginListType metadata, Writer out)
           
static void writePluginMetadata(PluginType metadata, OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

PluginXmlUtil

public PluginXmlUtil()
Method Detail

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.