it.imolinfo.jbi4ejb.jbi.component
Class Jbi4EjbLifeCycle

java.lang.Object
  extended by it.imolinfo.jbi4ejb.jbi.component.runtime.AbstractComponentLifeCycle
      extended by it.imolinfo.jbi4ejb.jbi.component.Jbi4EjbLifeCycle
All Implemented Interfaces:
javax.jbi.component.ComponentLifeCycle

public class Jbi4EjbLifeCycle
extends AbstractComponentLifeCycle

Jbi4Ejb ComponentLifeCycle implementation.

Author:
Marco Piraccini

Constructor Summary
Jbi4EjbLifeCycle(ComponentRuntime compRuntime)
          Instantiates a new jbi4 ejb life cycle.
 
Method Summary
protected  void activateServiceConsumers()
          Do nothing.
protected  void activateServiceProviders()
          Do nothing.
protected  javax.management.StandardMBean createExtensionMBean()
          no extension mbean.
protected  javax.management.ObjectName createExtensionMBeanName()
          no extension mbean.
protected  MessageExchangeReceiver createMessageExchangeReceiver()
          Create the message exchange receiver.
protected  void deactivateServiceConsumers()
          Do nothing.
protected  void deactivateServiceProviders()
          Do nothing.
 org.codehaus.xfire.XFire getXfire()
          Gets xfire.
protected  void initMessageExchangeHandlerFactory()
          Init the Message Exchange Handler factory.
protected  void onInit()
          chance to extended classes to do the component specific init.
 
Methods inherited from class it.imolinfo.jbi4ejb.jbi.component.runtime.AbstractComponentLifeCycle
getComponentRuntime, getExtensionMBeanName, init, onShutDown, onStart, onStop, shutDown, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jbi4EjbLifeCycle

public Jbi4EjbLifeCycle(ComponentRuntime compRuntime)
Instantiates a new jbi4 ejb life cycle.

Parameters:
compRuntime - the component runtime
Method Detail

onInit

protected void onInit()
               throws javax.jbi.JBIException
chance to extended classes to do the component specific init.

Overrides:
onInit in class AbstractComponentLifeCycle
Throws:
javax.jbi.JBIException - if some problem occurs

initMessageExchangeHandlerFactory

protected void initMessageExchangeHandlerFactory()
                                          throws javax.jbi.JBIException
Init the Message Exchange Handler factory.

Specified by:
initMessageExchangeHandlerFactory in class AbstractComponentLifeCycle
Throws:
javax.jbi.JBIException - if some problem occurs
See Also:
AbstractComponentLifeCycle.initMessageExchangeHandlerFactory()

createMessageExchangeReceiver

protected MessageExchangeReceiver createMessageExchangeReceiver()
                                                         throws java.lang.Exception
Create the message exchange receiver.

Specified by:
createMessageExchangeReceiver in class AbstractComponentLifeCycle
Returns:
the MessageExchangeReceiver
Throws:
java.lang.Exception - if some problem occurs
See Also:
AbstractComponentLifeCycle.createMessageExchangeReceiver(), MessageExchangeReceiver

activateServiceConsumers

protected void activateServiceConsumers()
                                 throws javax.jbi.JBIException
Do nothing.

Specified by:
activateServiceConsumers in class AbstractComponentLifeCycle
Throws:
javax.jbi.JBIException - if some problem occurs
See Also:
AbstractComponentLifeCycle.activateServiceConsumers()

deactivateServiceConsumers

protected void deactivateServiceConsumers()
                                   throws javax.jbi.JBIException
Do nothing.

Specified by:
deactivateServiceConsumers in class AbstractComponentLifeCycle
Throws:
javax.jbi.JBIException - if some problem occurs
See Also:
AbstractComponentLifeCycle.deactivateServiceConsumers()

activateServiceProviders

protected void activateServiceProviders()
                                 throws javax.jbi.JBIException
Do nothing.

Specified by:
activateServiceProviders in class AbstractComponentLifeCycle
Throws:
javax.jbi.JBIException - if some problem occurs
See Also:
AbstractComponentLifeCycle.activateServiceProviders()

deactivateServiceProviders

protected void deactivateServiceProviders()
                                   throws javax.jbi.JBIException
Do nothing.

Specified by:
deactivateServiceProviders in class AbstractComponentLifeCycle
Throws:
javax.jbi.JBIException - if some problem occurs
See Also:
AbstractComponentLifeCycle.deactivateServiceProviders()

createExtensionMBeanName

protected javax.management.ObjectName createExtensionMBeanName()
no extension mbean.

Specified by:
createExtensionMBeanName in class AbstractComponentLifeCycle
Returns:
alway null

createExtensionMBean

protected javax.management.StandardMBean createExtensionMBean()
no extension mbean.

Specified by:
createExtensionMBean in class AbstractComponentLifeCycle
Returns:
always null

getXfire

public org.codehaus.xfire.XFire getXfire()
Gets xfire.

Returns:
the xfire


Copyright © 2007-2008 Imola Informatica. All Rights Reserved.