|
JPF 0.10 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.java.plugin.standard.PluginLifecycleHandler
org.java.plugin.standard.StandardPluginLifecycleHandler
Standard implementation of plug-in life cycle handler.
Configuration parameters
This life cycle handler implementation supports following configuration parameters:
true
, plug-in classloader will try loading classes from
system (boot) classpath after trying to load them from plug-in
classpath. Otherwise system classpath will be used first. Default
value is false
that corresponds to standard delegation model
for classloaders hierarchy.
Constructor Summary | |
StandardPluginLifecycleHandler()
|
Method Summary | |
protected void |
afterPluginStop(Plugin plugin)
This method does nothing in this implementation. |
protected void |
beforePluginStart(Plugin plugin)
This method does nothing in this implementation. |
void |
configure(ExtendedProperties config)
Configures this handler instance. |
protected PluginClassLoader |
createPluginClassLoader(PluginDescriptor descr)
Creates standard implementation of plug-in class loader. |
protected Plugin |
createPluginInstance(PluginDescriptor descr)
Creates instance of plug-in class calling it's default (no-arguments) constructor. |
protected void |
dispose()
This method does nothing in this implementation. |
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 |
public StandardPluginLifecycleHandler()
Method Detail |
protected PluginClassLoader createPluginClassLoader(PluginDescriptor descr)
createPluginClassLoader
in class PluginLifecycleHandler
descr
- plug-in descriptor
PluginLifecycleHandler.createPluginClassLoader(
org.java.plugin.registry.PluginDescriptor)
protected Plugin createPluginInstance(PluginDescriptor descr) throws PluginLifecycleException
plug-in's class loader
.
createPluginInstance
in class PluginLifecycleHandler
descr
- plug-in descriptor
PluginLifecycleException
- if plug-in class can't be instantiated
for some reasonPluginLifecycleHandler.createPluginInstance(
org.java.plugin.registry.PluginDescriptor)
protected void beforePluginStart(Plugin plugin)
beforePluginStart
in class PluginLifecycleHandler
plugin
- plug-in being startingPluginLifecycleHandler.beforePluginStart(
org.java.plugin.Plugin)
protected void afterPluginStop(Plugin plugin)
afterPluginStop
in class PluginLifecycleHandler
plugin
- plug-in being stoppingPluginLifecycleHandler.afterPluginStop(
org.java.plugin.Plugin)
protected void dispose()
dispose
in class PluginLifecycleHandler
PluginLifecycleHandler.dispose()
public void configure(ExtendedProperties config)
PluginLifecycleHandler
PluginLifecycleHandler.init(PluginManager)
, usually this is done in
object factory
implementation.
configure
in class PluginLifecycleHandler
config
- handler configuration dataPluginLifecycleHandler.configure(
ExtendedProperties)
|
JPF 0.10 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |