com.atlassian.plugin.parsers
Interface DescriptorParser
- All Known Implementing Classes:
- XmlDescriptorParser
public interface DescriptorParser
Interface for parsing a plugin descriptor file, e.g. atlassian-plugin.xml.
- See Also:
XmlDescriptorParser,
DescriptorParserFactory
configurePlugin
Plugin configurePlugin(ModuleDescriptorFactory moduleDescriptorFactory,
Plugin plugin)
throws PluginParseException
- Sets the configuration on the plugin argument to match the configuration specified in the
plugin descriptor (typically an XML file).
- Parameters:
moduleDescriptorFactory - a factory for instantiating the required plugin modulesplugin - the plugin whose configuration will be modified
- Returns:
- the original plugin with the configuration changed and the module descriptors added
- Throws:
PluginParseException - if there was an error getting information about the plugin
getKey
java.lang.String getKey()
- Returns:
- the key of the plugin specified in the descriptor
isSystemPlugin
boolean isSystemPlugin()
- Returns:
- true if this plugin is marked as a system plugin in the descriptor. This should only be
acted on by plugin loaders which can trust their plugins implicitly (e.g. a classpath plugin
loader).
getPluginsVersion
int getPluginsVersion()
- Returns:
- The version of the plugin system expected by this plugin. If unknown, it is assumed to be 1.
Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.