Package hudson.init
Class InitializerFinder
- java.lang.Object
-
- org.jvnet.hudson.reactor.TaskBuilder
-
- hudson.init.InitializerFinder
-
public class InitializerFinder extends org.jvnet.hudson.reactor.TaskBuilder
Discovers initialization tasks fromInitializer
.- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description protected ClassLoader
cl
-
Constructor Summary
Constructors Constructor Description InitializerFinder()
InitializerFinder(ClassLoader cl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.jvnet.hudson.reactor.Milestone
afterOf(Initializer i)
protected String[]
attainsOf(Initializer i)
protected org.jvnet.hudson.reactor.Milestone
beforeOf(Initializer i)
Collection<org.jvnet.hudson.reactor.Task>
discoverTasks(org.jvnet.hudson.reactor.Reactor session)
protected String
displayNameOf(Initializer i)
protected boolean
fatalOf(Initializer i)
protected boolean
filter(Method e)
Return true to ignore this method.protected String
getDisplayNameOf(Method e, T i)
Obtains the display name of the given initialization taskprotected void
invoke(Method e)
Invokes the given initialization method.protected String[]
requiresOf(Initializer i)
-
-
-
Field Detail
-
cl
protected final ClassLoader cl
-
-
Constructor Detail
-
InitializerFinder
public InitializerFinder(ClassLoader cl)
-
InitializerFinder
public InitializerFinder()
-
-
Method Detail
-
displayNameOf
protected String displayNameOf(Initializer i)
-
requiresOf
protected String[] requiresOf(Initializer i)
-
attainsOf
protected String[] attainsOf(Initializer i)
-
afterOf
protected org.jvnet.hudson.reactor.Milestone afterOf(Initializer i)
-
beforeOf
protected org.jvnet.hudson.reactor.Milestone beforeOf(Initializer i)
-
fatalOf
protected boolean fatalOf(Initializer i)
-
discoverTasks
public Collection<org.jvnet.hudson.reactor.Task> discoverTasks(org.jvnet.hudson.reactor.Reactor session) throws IOException
- Specified by:
discoverTasks
in classorg.jvnet.hudson.reactor.TaskBuilder
- Throws:
IOException
-
filter
protected boolean filter(Method e)
Return true to ignore this method.
-
getDisplayNameOf
protected String getDisplayNameOf(Method e, T i)
Obtains the display name of the given initialization task
-
invoke
protected void invoke(Method e)
Invokes the given initialization method.
-
-