public interface ExtensionDelegate
CommonObjects
element in the extension.xml file.Modifier and Type | Method and Description |
---|---|
void |
disposeExtensionDelegate(ExtensionContext extensionContext)
Called when the associated extension is being disposed of.
|
void |
initExtensionDelegate(ExtensionContext extensionContext)
Called when an extension is being initialised.
|
void |
shutdownExtension(ShutdownContext shutdownContext,
ExtensionContext extensionContext)
Called at application shutdown to allow an extension to tidy up its global state, deallocate
any system resources etc.
|
void |
startupExtension(StartupContext startupContext,
ExtensionContext extensionContext)
Called at application startup when the extension is first loaded to allow an extension to
initialise its global state, process command line arguments, allocate necessary resources etc.
|
void initExtensionDelegate(ExtensionContext extensionContext)
extensionContext
- the extension contextvoid disposeExtensionDelegate(ExtensionContext extensionContext)
Note that this method may not always be called in embedded environments such as application servers.
extensionContext
- the extension contextvoid startupExtension(StartupContext startupContext, ExtensionContext extensionContext)
Note that this method may not be called in embedded environments such as application servers.
Note also that if the method processes command line arguments it should notify the context using
the notifyCommandLineArgumentHandled()
method. If this does not happen, the application
will assume that an argument is invalid and may abort.
Note that this method may not be called in embedded environments such as application servers.
startupContext
- the startup context for the applicationextensionContext
- the extension contextStartupContext.notifyCommandLineArgumentHandled(String)
void shutdownExtension(ShutdownContext shutdownContext, ExtensionContext extensionContext)
Note that this method may not always be called in embedded environments such as application servers.
shutdownContext
- the context in which the application is being shutdownextensionContext
- the extension contextCopyright © 2014 Integral Solutions Ltd. All Rights Reserved.