public abstract class ModelBindingInstaller extends Object implements Bootstrap
| Constructor and Description |
|---|
ModelBindingInstaller() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
Cleans up any resources allocated by the bootstrap implementation,
including performing deregistration of the extension MBean, if
applicable.
|
ObjectName |
getExtensionMBeanName()
Obtains the
ObjectName of the optional installer
configuration MBean. |
void |
init(InstallationContext installContext)
Initializes the installation environment for a component.
|
void |
onInstall()
Called at the beginning of installation of a component to perform any
special installation tasks required by the component.
|
void |
onUninstall()
Called at the beginning of uninstallation of a component to perform any
special uninstallation tasks required by the component.
|
public void init(InstallationContext installContext) throws JBIException
If the component needs to register an optional installer configuration MBean, it MUST do so during execution of this method, or the getExtensionMBean() method.
This method must be called after the installation root (available through the installContext parameter) is prepared.
init in interface BootstrapinstallContext - the context containing information from the
install command and from the component installation
ZIP file; this must be non-null.JBIException - when there is an error requiring that
the installation be terminatedpublic void cleanUp()
throws JBIException
This method must be called after the onInstall() or onUninstall() method is called, whether it succeeds or fails. It must be called after init() is called, if init() fails by throwing an exception.
cleanUp in interface BootstrapJBIException - if the bootstrap cannot clean up allocated
resourcespublic ObjectName getExtensionMBeanName()
ObjectName of the optional installer
configuration MBean. If none is provided by this component, this method
must return null.
This method must be called before onInstall() (or onUninstall()) is called by the JBI implementation.
getExtensionMBeanName in interface Bootstrapnull if there is no such MBeanpublic void onInstall()
throws JBIException
This method must not be called if the init() method failed with an exception.
onInstall in interface BootstrapJBIException - when there is an error requiring that
the installation be terminatedpublic void onUninstall()
throws JBIException
This method must not be called if the init() method failed with an exception.
onUninstall in interface BootstrapJBIException - when there is an error requiring that
the uninstallation be terminated.Copyright © 2011-2016 OpenESB Community. All Rights Reserved.