|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.imolinfo.jbi4cics.jbi.BaseBootstrap
public class BaseBootstrap
Base class for components bootstrap. Due to classloading mechanism in JBI, Shared Libraries are not available at bootstrap time, so this class should be copied in your own component and modified directly, instead of inheriting it.
Constructor Summary | |
---|---|
BaseBootstrap()
Creates a new instance of this class. |
Method Summary | |
---|---|
void |
cleanUp()
Cleans up any resources allocated by the bootstrap implementation, including performing deregistration of the extension MBean, if applicable. |
protected javax.management.ObjectName |
createExtensionMBeanName()
|
protected void |
doCleanUp()
|
protected void |
doInit()
|
protected void |
doOnInstall()
|
protected void |
doOnUninstall()
|
protected java.lang.Object |
getExtensionMBean()
|
javax.management.ObjectName |
getExtensionMBeanName()
Obtains the ObjectName of the optional installer
configuration MBean. |
void |
init(javax.jbi.component.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseBootstrap()
Method Detail |
---|
public final javax.management.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 javax.jbi.component.Bootstrap
ObjectName
of the optional installer
configuration MBean; returns null
if there is no
such MBean.protected java.lang.Object getExtensionMBean() throws java.lang.Exception
java.lang.Exception
protected javax.management.ObjectName createExtensionMBeanName() throws java.lang.Exception
java.lang.Exception
public final void init(javax.jbi.component.InstallationContext installContext) throws javax.jbi.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 javax.jbi.component.Bootstrap
installContext
- the context containing information from the
install command and from the component
installation ZIP file; this must be
non-null
.
javax.jbi.JBIException
- when there is an error requiring that the
installation be terminated.protected void doInit() throws java.lang.Exception
java.lang.Exception
public final void cleanUp() throws javax.jbi.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 javax.jbi.component.Bootstrap
javax.jbi.JBIException
- if the bootstrap cannot clean up allocated
resources.protected void doCleanUp() throws java.lang.Exception
java.lang.Exception
public final void onInstall() throws javax.jbi.JBIException
This method must not be called if the init()
method failed
with an exception.
onInstall
in interface javax.jbi.component.Bootstrap
javax.jbi.JBIException
- when there is an error requiring that the
installation be terminated.protected void doOnInstall() throws java.lang.Exception
java.lang.Exception
public final void onUninstall() throws javax.jbi.JBIException
This method must not be called if the init()
method failed
with an exception.
onUninstall
in interface javax.jbi.component.Bootstrap
javax.jbi.JBIException
- when there is an error requiring that the
uninstallation be terminated.protected void doOnUninstall() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |