|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.loaders.ClassLoadingPluginLoader
com.atlassian.plugin.osgi.loader.OsgiPluginLoader
public class OsgiPluginLoader
Plugin loader that starts an OSGi container and loads plugins into it, wrapped as OSGi bundles.
| Constructor Summary | |
|---|---|
OsgiPluginLoader(java.io.File pluginPath,
java.io.File startBundlesPath,
java.lang.String pluginDescriptorFileName,
PluginFactory pluginFactory,
HostComponentProvider provider)
|
|
| Method Summary | |
|---|---|
java.lang.String |
canLoad(PluginJar pluginJar)
|
protected Plugin |
createPlugin(DescriptorParser parser,
DeploymentUnit unit,
PluginClassLoader loader)
|
protected Plugin |
handleNoDescriptor(DeploymentUnit deploymentUnit)
|
java.util.Collection |
loadAllPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
|
void |
reloadHostComponents(HostComponentProvider provider)
Forces all registered host components to be unregistered and the HostComponentProvider to be called to get a new list of host components |
void |
setJarPatterns(java.util.List<java.lang.String> includes,
java.util.List<java.lang.String> excludes)
Sets the jars to include and exclude from scanning |
void |
setPackagePatterns(java.util.List<java.lang.String> includes,
java.util.List<java.lang.String> excludes)
Sets the packages to include and exclude |
void |
setPackageVersions(java.util.Map<java.lang.String,java.lang.String> packageToVersions)
Maps discovered packages to specific versions by overriding autodiscovered versions |
void |
setPluginTransformer(PluginTransformer trans)
|
void |
shutDown()
|
| Methods inherited from class com.atlassian.plugin.loaders.ClassLoadingPluginLoader |
|---|
addFoundPlugins, deployPluginFromUnit, removePlugin, setDescriptorParserFactory, supportsAddition, supportsRemoval |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OsgiPluginLoader(java.io.File pluginPath,
java.io.File startBundlesPath,
java.lang.String pluginDescriptorFileName,
PluginFactory pluginFactory,
HostComponentProvider provider)
| Method Detail |
|---|
public void setPluginTransformer(PluginTransformer trans)
public void reloadHostComponents(HostComponentProvider provider)
provider - The host component provider to reload frompublic void shutDown()
shutDown in class ClassLoadingPluginLoaderpublic java.util.Collection loadAllPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
loadAllPlugins in interface PluginLoaderloadAllPlugins in class ClassLoadingPluginLoader
protected Plugin createPlugin(DescriptorParser parser,
DeploymentUnit unit,
PluginClassLoader loader)
createPlugin in class ClassLoadingPluginLoader
protected Plugin handleNoDescriptor(DeploymentUnit deploymentUnit)
throws PluginParseException
handleNoDescriptor in class ClassLoadingPluginLoaderPluginParseException
public void setJarPatterns(java.util.List<java.lang.String> includes,
java.util.List<java.lang.String> excludes)
includes - A list of jar patterns to includeexcludes - A list of jar patterns to exclude
public void setPackagePatterns(java.util.List<java.lang.String> includes,
java.util.List<java.lang.String> excludes)
includes - A list of patterns to includeexcludes - A list of patterns to excludepublic void setPackageVersions(java.util.Map<java.lang.String,java.lang.String> packageToVersions)
packageToVersions - A map of package patterns to version strings
public java.lang.String canLoad(PluginJar pluginJar)
throws PluginParseException
canLoad in interface DynamicPluginLoadercanLoad in class ClassLoadingPluginLoaderPluginParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||