|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.component.framework.JBIBootstrap
org.ow2.petals.component.framework.DefaultBootstrap
public class DefaultBootstrap
A default bootstrap. This bootstrap class register an MBean object into the
JMX server that will be available only during the bootstrap phase. The
developer only needs to override methods getMethodList() to set the
list of method that he want to expose via JMX.
| Field Summary | |
|---|---|
protected javax.management.ObjectName |
mbeanName
The bootstrap MBean name |
| Fields inherited from class org.ow2.petals.component.framework.JBIBootstrap |
|---|
installContext |
| Constructor Summary | |
|---|---|
DefaultBootstrap()
|
|
| Method Summary | |
|---|---|
void |
cleanUp()
Clean resources allocated by the bootstrap |
protected void |
doInit()
Initialize the bootstrap registering its Extension MBean into the JMX server. |
protected java.util.List<java.lang.String> |
getAttributeList()
Method to be overridden if the component implementation needs to expose attributes via JMX. |
javax.management.ObjectName |
getExtensionMBeanName()
Returns the extension MBean name. |
protected java.util.List<java.lang.String> |
getMethodList()
Method to be overridden if the component implementation needs to expose methods via JMX. |
void |
onInstall()
Installs the component persisting the configuration done via the extension Mbean. |
| Methods inherited from class org.ow2.petals.component.framework.JBIBootstrap |
|---|
getInstallContext, getJbiComponentConfiguration, getLogger, init, onUninstall |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.management.ObjectName mbeanName
| Constructor Detail |
|---|
public DefaultBootstrap()
| Method Detail |
|---|
public javax.management.ObjectName getExtensionMBeanName()
getExtensionMBeanName in interface javax.jbi.component.BootstrapgetExtensionMBeanName in class JBIBootstrapnull is returned.ComponentLifeCycle.getExtensionMBeanName()
public void onInstall()
throws javax.jbi.JBIException
onInstall in interface javax.jbi.component.BootstraponInstall in class JBIBootstrapjavax.jbi.JBIExceptionBootstrap.onInstall()
public void cleanUp()
throws javax.jbi.JBIException
cleanUp in interface javax.jbi.component.BootstrapcleanUp in class JBIBootstrapjavax.jbi.JBIExceptionBootstrap.cleanUp()
protected void doInit()
throws javax.jbi.JBIException
doInit in class JBIBootstrapjavax.jbi.JBIExceptionJBIBootstrap.doInit()protected java.util.List<java.lang.String> getMethodList()
protected java.util.List<java.lang.String> getAttributeList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||