org.ow2.petals.component.framework
Class JBIBootstrap

java.lang.Object
  extended by org.ow2.petals.component.framework.JBIBootstrap
All Implemented Interfaces:
javax.jbi.component.Bootstrap
Direct Known Subclasses:
DefaultBootstrap

public class JBIBootstrap
extends java.lang.Object
implements javax.jbi.component.Bootstrap

A simple bootstrap implementation. This bootstrap just copy the JBI extensions in a properties file that will be used by components.

Author:
ofabre - EBM WebSourcing, chamerling - EBM WebSourcing, rnaudin - EBM WebSourcing

Field Summary
protected  javax.jbi.component.InstallationContext installContext
          The component installation context
 
Constructor Summary
JBIBootstrap()
           
 
Method Summary
 void cleanUp()
           
protected  void doInit()
          Can be overridden.
 javax.management.ObjectName getExtensionMBeanName()
          Returns null by default as this class does not provides JMX extension MBean
 javax.jbi.component.InstallationContext getInstallContext()
           
 org.ow2.petals.component.framework.jbidescriptor.generated.Jbi getJbiComponentConfiguration()
           
 java.util.logging.Logger getLogger()
           
 void init(javax.jbi.component.InstallationContext installContext)
           
 void onInstall()
           
 void onUninstall()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

installContext

protected javax.jbi.component.InstallationContext installContext
The component installation context

Constructor Detail

JBIBootstrap

public JBIBootstrap()
Method Detail

getExtensionMBeanName

public javax.management.ObjectName getExtensionMBeanName()
Returns null by default as this class does not provides JMX extension MBean

Specified by:
getExtensionMBeanName in interface javax.jbi.component.Bootstrap
See Also:
ComponentLifeCycle.getExtensionMBeanName()

getJbiComponentConfiguration

public org.ow2.petals.component.framework.jbidescriptor.generated.Jbi getJbiComponentConfiguration()
Returns:
the componentConfiguration

init

public void init(javax.jbi.component.InstallationContext installContext)
          throws javax.jbi.JBIException
Specified by:
init in interface javax.jbi.component.Bootstrap
Throws:
javax.jbi.JBIException
See Also:
javax.jbi.component.Bootstrap#init(javax.jbi.component. InstallationContext)

onInstall

public void onInstall()
               throws javax.jbi.JBIException
Specified by:
onInstall in interface javax.jbi.component.Bootstrap
Throws:
javax.jbi.JBIException

onUninstall

public void onUninstall()
                 throws javax.jbi.JBIException
Specified by:
onUninstall in interface javax.jbi.component.Bootstrap
Throws:
javax.jbi.JBIException

cleanUp

public void cleanUp()
             throws javax.jbi.JBIException
Specified by:
cleanUp in interface javax.jbi.component.Bootstrap
Throws:
javax.jbi.JBIException

getInstallContext

public javax.jbi.component.InstallationContext getInstallContext()

getLogger

public java.util.logging.Logger getLogger()

doInit

protected void doInit()
               throws javax.jbi.JBIException
Can be overridden.

Throws:
java.lang.Exception
javax.jbi.JBIException


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.