org.hudsonci.inject.internal.plugin
Class DelegatingPluginStrategy

java.lang.Object
  extended by org.hudsonci.inject.internal.plugin.DelegatingPluginStrategy
All Implemented Interfaces:
ExtensionPoint, PluginStrategy

public class DelegatingPluginStrategy
extends Object
implements PluginStrategy

Delegates to PluginStrategy implementation bound in Guice context.

Since:
1.397
Author:
Jason Dillon

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
DelegatingPluginStrategy(PluginManager plugins)
           
 
Method Summary
 PluginWrapper createPluginWrapper(File archive)
           
<T> List<ExtensionComponent<T>>
findComponents(Class<T> type, Hudson hudson)
           
 PluginStrategy getDelegate()
           
 void initializeComponents(PluginWrapper plugin)
           
 void load(PluginWrapper plugin)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingPluginStrategy

public DelegatingPluginStrategy(PluginManager plugins)
Method Detail

getDelegate

public PluginStrategy getDelegate()

createPluginWrapper

public PluginWrapper createPluginWrapper(File archive)
                                  throws IOException
Specified by:
createPluginWrapper in interface PluginStrategy
Throws:
IOException

load

public void load(PluginWrapper plugin)
          throws IOException
Specified by:
load in interface PluginStrategy
Throws:
IOException

initializeComponents

public void initializeComponents(PluginWrapper plugin)
Specified by:
initializeComponents in interface PluginStrategy

findComponents

public <T> List<ExtensionComponent<T>> findComponents(Class<T> type,
                                                      Hudson hudson)
Specified by:
findComponents in interface PluginStrategy


Copyright © 2004-2011 Hudson. All Rights Reserved.