|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.init.InitStrategy
public class InitStrategy
Strategy pattern of the various key decision making during the Jenkins initialization.
Because the act of initializing plugins is a part of the Jenkins initialization,
this extension point cannot be implemented in a plugin. You need to place your jar
inside WEB-INF/lib
instead.
To register, put MetaInfServices
on your implementation.
Constructor Summary | |
---|---|
InitStrategy()
|
Method Summary | |
---|---|
static InitStrategy |
get(ClassLoader cl)
Obtains the instance to be used. |
protected void |
getBundledPluginsFromProperty(List<File> r)
Lists up additional bundled plugins from the system property hudson.bundled.plugins . |
List<File> |
listPluginArchives(PluginManager pm)
Returns the list of *.jpi, *.hpi and *.hpl to expand and load. |
boolean |
skipInitTask(org.jvnet.hudson.reactor.Task task)
Selectively skip some of the initialization tasks. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InitStrategy()
Method Detail |
---|
public List<File> listPluginArchives(PluginManager pm) throws IOException
Normally we look at $JENKINS_HOME/plugins/*.jpi
and *.hpi and *.hpl.
IOException
protected void getBundledPluginsFromProperty(List<File> r)
hudson.bundled.plugins
.
Since 1.480 glob syntax is supported.
For use in the "mvn hudson-dev:run".
TODO: maven-hpi-plugin should inject its own InitStrategy instead of having this in the core.
public boolean skipInitTask(org.jvnet.hudson.reactor.Task task)
public static InitStrategy get(ClassLoader cl) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |