|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.ClassicPluginStrategy
public class ClassicPluginStrategy
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Field Summary | |
|---|---|
static boolean |
useAntClassLoader
|
| Constructor Summary | |
|---|---|
ClassicPluginStrategy(PluginManager pluginManager)
|
|
| Method Summary | ||
|---|---|---|
protected ClassLoader |
createClassLoader(List<File> paths,
ClassLoader parent)
Deprecated. |
|
protected ClassLoader |
createClassLoader(List<File> paths,
ClassLoader parent,
Attributes atts)
Creates the classloader that can load all the specified jar files and delegate to the given parent. |
|
PluginWrapper |
createPluginWrapper(File archive)
Creates a plugin wrapper, which provides a management interface for the plugin |
|
|
findComponents(Class<T> type,
Hudson hudson)
Find components of the given type using the assigned strategy. |
|
void |
initializeComponents(PluginWrapper plugin)
Optionally start services provided by the plugin. |
|
void |
load(PluginWrapper wrapper)
Loads the plugin and starts it. |
|
void |
startPlugin(PluginWrapper plugin)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean useAntClassLoader
| Constructor Detail |
|---|
public ClassicPluginStrategy(PluginManager pluginManager)
| Method Detail |
|---|
public PluginWrapper createPluginWrapper(File archive)
throws IOException
PluginStrategy
createPluginWrapper in interface PluginStrategyarchive - Either a directory that points to a pre-exploded plugin, or an jpi file, or an jpl file.
IOException
@Deprecated
protected ClassLoader createClassLoader(List<File> paths,
ClassLoader parent)
throws IOException
IOException
protected ClassLoader createClassLoader(List<File> paths,
ClassLoader parent,
Attributes atts)
throws IOException
IOExceptionpublic void initializeComponents(PluginWrapper plugin)
PluginStrategy
initializeComponents in interface PluginStrategy
public <T> List<ExtensionComponent<T>> findComponents(Class<T> type,
Hudson hudson)
PluginStrategy
findComponents in interface PluginStrategytype - The component typehudson - The Hudson scope
public void load(PluginWrapper wrapper)
throws IOException
PluginStrategyThis should be done after all the classloaders are constructed for all the plugins, so that dependencies can be properly loaded by plugins.
load in interface PluginStrategyIOException
public void startPlugin(PluginWrapper plugin)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||