hudson.init
Class InitializerFinder

java.lang.Object
  extended by org.jvnet.hudson.reactor.TaskBuilder
      extended by hudson.init.InitializerFinder

public class InitializerFinder
extends org.jvnet.hudson.reactor.TaskBuilder

Discovers initialization tasks from Initializer.

Author:
Kohsuke Kawaguchi

Nested Class Summary
 class InitializerFinder.TaskImpl
          Task implementation.
 
Field Summary
 
Fields inherited from class org.jvnet.hudson.reactor.TaskBuilder
EMPTY_BUILDER
 
Constructor Summary
InitializerFinder()
           
InitializerFinder(ClassLoader cl)
           
 
Method Summary
 Collection<org.jvnet.hudson.reactor.Task> discoverTasks(org.jvnet.hudson.reactor.Reactor session)
           
protected  boolean filter(Method e)
          Return true to ignore this method.
protected  String getDisplayNameOf(Method e, Initializer i)
          Obtains the display name of the given initialization task
protected  void invoke(Method e)
          Invokes the given initialization method.
 
Methods inherited from class org.jvnet.hudson.reactor.TaskBuilder
fromTasks, union, union
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitializerFinder

public InitializerFinder(ClassLoader cl)

InitializerFinder

public InitializerFinder()
Method Detail

discoverTasks

public Collection<org.jvnet.hudson.reactor.Task> discoverTasks(org.jvnet.hudson.reactor.Reactor session)
                                                        throws IOException
Specified by:
discoverTasks in class org.jvnet.hudson.reactor.TaskBuilder
Throws:
IOException

filter

protected boolean filter(Method e)
Return true to ignore this method.


getDisplayNameOf

protected String getDisplayNameOf(Method e,
                                  Initializer i)
Obtains the display name of the given initialization task


invoke

protected void invoke(Method e)
Invokes the given initialization method.



Copyright © 2004-2013. All Rights Reserved.