public interface EngineLifecycleExtension
SPI used to notify JSPWiki extensions about Engine's initialization & shutdown, without having to deep
dive on Engine's internals.
Examples of EngineLifecycleExtension's use cases:
jspwiki.plugin.searchPath, so it can be used as a drop-in, without further configuration.WikiEventListener.As a concrete example, the markdown module uses an EngineLifecycleExtension to set up all the required properties
if jspwiki.syntax=markdown is provided on the jspwiki[-custom].properties file.
All methods are provided with a default, do-nothing implementation, so specific EngineLifecycleExtensions only have
to provide implementations for the methods they're really interested in.
| Modifier and Type | Method and Description |
|---|---|
default void |
onInit(java.util.Properties properties)
Called before
Engine initialization, after the wiki properties have been sought out. |
default void |
onShutdown(Engine e,
java.util.Properties properties)
Called before
Engine shutdown. |
default void |
onStart(Engine e,
java.util.Properties properties)
Called after
Engine initialization. |
default void onInit(java.util.Properties properties)
Engine initialization, after the wiki properties have been sought out.properties - wiki configuration properties.default void onStart(Engine e, java.util.Properties properties)
Engine initialization.properties - wiki configuration properties.e - JSPWiki's ready to be used Engine.default void onShutdown(Engine e, java.util.Properties properties)
Engine shutdown.e - JSPWiki's running Engine.properties - wiki configuration properties.Copyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.