public final class UnloadableStaticPluginFactory extends AbstractPluginFactory
LegacyDynamicPluginFactory is not used.applications, descriptorParserFactory| Constructor and Description |
|---|
UnloadableStaticPluginFactory(String pluginDescriptorFileName) |
| Modifier and Type | Method and Description |
|---|---|
Plugin |
create(PluginArtifact pluginArtifact,
ModuleDescriptorFactory moduleDescriptorFactory)
Creates an unloadable plugin
|
ModuleDescriptor<?> |
createModule(Plugin plugin,
org.dom4j.Element module,
ModuleDescriptorFactory moduleDescriptorFactory)
If this factory is capable of loading a plugin of the type passed, attempt to create a module descriptor.
|
protected InputStream |
getDescriptorInputStream(PluginArtifact pluginArtifact) |
protected Predicate<Integer> |
isValidPluginsVersion() |
canCreate, getPluginKeyFromDescriptor, hasDescriptorpublic UnloadableStaticPluginFactory(String pluginDescriptorFileName)
protected InputStream getDescriptorInputStream(PluginArtifact pluginArtifact)
getDescriptorInputStream in class AbstractPluginFactoryprotected Predicate<Integer> isValidPluginsVersion()
isValidPluginsVersion in class AbstractPluginFactorypublic Plugin create(PluginArtifact pluginArtifact, ModuleDescriptorFactory moduleDescriptorFactory) throws PluginParseException
pluginArtifact - the plugin artifact to deploymoduleDescriptorFactory - The factory for plugin modulesPluginParseException - If the descriptor cannot be parsedpublic ModuleDescriptor<?> createModule(Plugin plugin, org.dom4j.Element module, ModuleDescriptorFactory moduleDescriptorFactory)
PluginFactory
If capable, always return a ModuleDescriptor, even if it indicates a failure case. Caller is responsible for
handling exceptional ModuleDescriptor.
Implementors should use (plugin instanceof <plugin-class>) to determine their capability;
subclasses of implementors should override this if special handling is required.
plugin - that the module will be a member ofmodule - to createmoduleDescriptorFactory - basic factory, may be overriddenCopyright © 2019 Atlassian. All rights reserved.