com.atlassian.plugin.osgi.factory
Class FilteringXmlDescriptorParser

java.lang.Object
  extended by com.atlassian.plugin.parsers.XmlDescriptorParser
      extended by com.atlassian.plugin.osgi.factory.FilteringXmlDescriptorParser
All Implemented Interfaces:
DescriptorParser

public class FilteringXmlDescriptorParser
extends XmlDescriptorParser

Descriptor parser that ignores certain modules


Constructor Summary
FilteringXmlDescriptorParser(java.io.InputStream source, java.lang.String... modulesToIgnore)
           
 
Method Summary
protected  ModuleDescriptor createModuleDescriptor(Plugin plugin, org.dom4j.Element element, ModuleDescriptorFactory moduleDescriptorFactory)
          Ignores matched modules, otherwise, the normal behavior occurs
 
Methods inherited from class com.atlassian.plugin.parsers.XmlDescriptorParser
configurePlugin, createDocument, createPluginInformation, getDocument, getKey, getPluginsVersion, isSystemPlugin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilteringXmlDescriptorParser

public FilteringXmlDescriptorParser(java.io.InputStream source,
                                    java.lang.String... modulesToIgnore)
                             throws PluginParseException
Throws:
PluginParseException - if there is a problem reading the descriptor from the XML InputStream.
Method Detail

createModuleDescriptor

protected ModuleDescriptor createModuleDescriptor(Plugin plugin,
                                                  org.dom4j.Element element,
                                                  ModuleDescriptorFactory moduleDescriptorFactory)
                                           throws PluginParseException
Ignores matched modules, otherwise, the normal behavior occurs

Overrides:
createModuleDescriptor in class XmlDescriptorParser
Parameters:
plugin - The plugin
element - The module element
moduleDescriptorFactory - The module descriptor factory
Returns:
The module, or null if the module cannot be found or is being ignored
Throws:
PluginParseException


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.