org.hudsonci.inject.internal.plugin
Class SmoothiePluginStrategy

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

@Named(value="default")
@Singleton
public class SmoothiePluginStrategy
extends Object
implements PluginStrategy

Smoothie PluginStrategy.

Since:
1.397
Author:
Jason Dillon

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
SmoothiePluginStrategy(SmoothieContainer container, PluginWrapperFactory pluginFactory, ExtensionLocator extensionLocator, List<ExtensionFinder> extensionFinders)
           
 
Method Summary
 PluginWrapper createPluginWrapper(File archive)
          Load the plugins wrapper and inject it with the SmoothieContainer.
<T> List<ExtensionComponent<T>>
findComponents(Class<T> type, Hudson hudson)
           
 void initializeComponents(PluginWrapper plugin)
          This method of the PluginStrategy interface is completely unused.
 void load(PluginWrapper plugin)
          Loads the optional Plugin instance, configures and starts it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmoothiePluginStrategy

@Inject
public SmoothiePluginStrategy(SmoothieContainer container,
                                     PluginWrapperFactory pluginFactory,
                                     @Named(value="default")
                                     ExtensionLocator extensionLocator,
                                     List<ExtensionFinder> extensionFinders)
Method Detail

createPluginWrapper

public PluginWrapper createPluginWrapper(File archive)
                                  throws IOException
Load the plugins wrapper and inject it with the SmoothieContainer.

Specified by:
createPluginWrapper in interface PluginStrategy
Throws:
IOException

load

public void load(PluginWrapper plugin)
          throws IOException
Loads the optional Plugin instance, configures and starts it.

Specified by:
load in interface PluginStrategy
Throws:
IOException

initializeComponents

public void initializeComponents(PluginWrapper plugin)
This method of the PluginStrategy interface is completely unused.

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.