org.java.plugin.extension
Class GuicyLifecycleHandler

java.lang.Object
  extended by org.java.plugin.standard.PluginLifecycleHandler
      extended by org.java.plugin.standard.StandardPluginLifecycleHandler
          extended by org.java.plugin.extension.GuicyLifecycleHandler

public class GuicyLifecycleHandler
extends StandardPluginLifecycleHandler

Author: thasso Date: May 8, 2009


Constructor Summary
GuicyLifecycleHandler(com.google.inject.Injector injector)
           
 
Method Summary
 void configure(ExtendedProperties config)
          Configures this handler instance.
protected  Plugin createPluginInstance(PluginDescriptor descr)
          Creates instance of plug-in class calling it's default (no-arguments) constructor.
 java.lang.Class getPluginClass(PluginDescriptor descr)
           
 
Methods inherited from class org.java.plugin.standard.StandardPluginLifecycleHandler
afterPluginStop, beforePluginStart, createPluginClassLoader, dispose
 
Methods inherited from class org.java.plugin.standard.PluginLifecycleHandler
getPluginManager, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuicyLifecycleHandler

@Inject
public GuicyLifecycleHandler(com.google.inject.Injector injector)
Method Detail

createPluginInstance

protected Plugin createPluginInstance(PluginDescriptor descr)
                               throws PluginLifecycleException
Description copied from class: StandardPluginLifecycleHandler
Creates instance of plug-in class calling it's default (no-arguments) constructor. Class look-up is done with plug-in's class loader.

Overrides:
createPluginInstance in class StandardPluginLifecycleHandler
Parameters:
descr - plug-in descriptor
Returns:
new not initialized instance of plug-in class
Throws:
PluginLifecycleException - if plug-in class can't be instantiated for some reason
See Also:
PluginLifecycleHandler.createPluginInstance( org.java.plugin.registry.PluginDescriptor)

getPluginClass

public java.lang.Class getPluginClass(PluginDescriptor descr)
                               throws PluginLifecycleException
Throws:
PluginLifecycleException

configure

public void configure(ExtendedProperties config)
Description copied from class: PluginLifecycleHandler
Configures this handler instance. Note that this method should be called once before PluginLifecycleHandler.init(PluginManager), usually this is done in object factory implementation.

Overrides:
configure in class StandardPluginLifecycleHandler
Parameters:
config - handler configuration data
See Also:
PluginLifecycleHandler.configure( ExtendedProperties)


Copyright © 2010. All Rights Reserved.