Package com.atlassian.plugin.parsers
Interface DescriptorParserFactory
- All Known Subinterfaces:
CompositeDescriptorParserFactory
- All Known Implementing Classes:
XmlDescriptorParserFactory
public interface DescriptorParserFactory
A factory for creating descriptor parsers.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetInstance(InputStream source, Set<Application> applications) Creates a newDescriptorParserfor getting plugin descriptor information from the provided source data.
-
Method Details
-
getInstance
Creates a newDescriptorParserfor getting plugin descriptor information from the provided source data.- Parameters:
source- the stream of data which represents the descriptor. The stream will only be read once, so it need not be resettable.applications- The list of application keys to match for module descriptors- Returns:
- an instance of the descriptor parser tied to this InputStream
- Throws:
PluginParseException- if there was a problem creating the descriptor parser due to an invalid source stream.
-