| java.lang.Object com.sun.jbi.management.binding.ModelBindingInstaller
ModelBindingInstaller | abstract public class ModelBindingInstaller implements Bootstrap(Code) | | The ModelBindingInstaller implements the management controls for a standard
binding installer class, and can be extended to provide full installer
functionality for a JBI Framework binding component.
author: Sun Microsystems, Inc. |
Method Summary | |
public void | cleanUp() Cleans up any resources allocated by the bootstrap implementation,
including performing deregistration of the extension MBean, if
applicable.
This method must be called after the onInstall() or onUninstall() method
is called, whether it succeeds or fails. | public ObjectName | getExtensionMBeanName() Obtains the ObjectName of the optional installer
configuration MBean. | public void | init(InstallationContext installContext) Initializes the installation environment for a component. | public void | onInstall() Called at the beginning of installation of a component to perform any
special installation tasks required by the component. | public void | onUninstall() Called at the beginning of uninstallation of a component to perform any
special uninstallation tasks required by the component. |
cleanUp | public void cleanUp() throws JBIException(Code) | | Cleans up any resources allocated by the bootstrap implementation,
including performing deregistration of the extension MBean, if
applicable.
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.
exception: JBIException - if the bootstrap cannot clean up allocatedresources |
getExtensionMBeanName | public ObjectName getExtensionMBeanName()(Code) | | Obtains the 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.
ObjectName of the optional installer configuration MBean; returns null if there is no such MBean |
init | public void init(InstallationContext installContext) throws JBIException(Code) | | Initializes the installation environment for a component. This method is
expected to save any information from the installation context that
may be needed by other methods.
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.
Parameters: installContext - the context containing information from theinstall command and from the component installationZIP file; this must be non-null. exception: JBIException - when there is an error requiring thatthe installation be terminated |
onInstall | public void onInstall() throws JBIException(Code) | | Called at the beginning of installation of a component to perform any
special installation tasks required by the component.
This method must not be called if the init() method failed with an
exception.
exception: JBIException - when there is an error requiring thatthe installation be terminated |
onUninstall | public void onUninstall() throws JBIException(Code) | | Called at the beginning of uninstallation of a component to perform any
special uninstallation tasks required by the component.
This method must not be called if the init() method failed with an
exception.
exception: JBIException - when there is an error requiring thatthe uninstallation be terminated. |
|
|