com.atlassian.plugin.osgi.factory
Class UnloadableStaticPluginFactory
java.lang.Object
com.atlassian.plugin.factories.AbstractPluginFactory
com.atlassian.plugin.osgi.factory.UnloadableStaticPluginFactory
- All Implemented Interfaces:
- PluginFactory
public final class UnloadableStaticPluginFactory
- extends AbstractPluginFactory
Creates unloadable plugins from static plugins. Used to handle when a static plugin (version 1) is deployed
to a directory that only accepts OSGi plugins. This should be placed last in the chain of plugin factories and
only if LegacyDynamicPluginFactory is not used.
- Since:
- 2.2.3
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnloadableStaticPluginFactory
public UnloadableStaticPluginFactory(java.lang.String pluginDescriptorFileName)
getDescriptorInputStream
protected java.io.InputStream getDescriptorInputStream(PluginArtifact pluginArtifact)
- Specified by:
getDescriptorInputStream in class AbstractPluginFactory
isValidPluginsVersion
protected com.google.common.base.Predicate<java.lang.Integer> isValidPluginsVersion()
- Specified by:
isValidPluginsVersion in class AbstractPluginFactory
create
public Plugin create(PluginArtifact pluginArtifact,
ModuleDescriptorFactory moduleDescriptorFactory)
throws PluginParseException
- Creates an unloadable plugin
- Parameters:
pluginArtifact - the plugin artifact to deploymoduleDescriptorFactory - The factory for plugin modules
- Returns:
- The instantiated and populated plugin
- Throws:
PluginParseException - If the descriptor cannot be parsed
Copyright © 2013 Atlassian. All Rights Reserved.