it.imolinfo.jbi4corba.jbi.component.runtime
Class DefaultComponentLifeCycle

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

public class DefaultComponentLifeCycle
extends AbstractComponentLifeCycle

Default ComponentLifeCycle implementation.

Author:
Marco Piraccini

Field Summary
 
Fields inherited from class it.imolinfo.jbi4corba.jbi.component.runtime.AbstractComponentLifeCycle
JBI4CORBABC_PERF_CATEGORIES, jbiContext, mRuntimeConfig, mRuntimeConfigHelper, mStatusProviderHelper, PERF_CAT_DENORMALIZATION, PERF_CAT_NORMALIZATION, SHORT_DISPLAY_NAME
 
Constructor Summary
DefaultComponentLifeCycle(ComponentRuntime compRuntime)
           
 
Method Summary
protected  void activateServiceConsumers()
          service consumer initialization such as creating the service descriptions and activating the protocol specific external endpoints should be done.
protected  void activateServiceProviders()
          service providers initialization such as creating the service descriptions and activating the service endpoints should be done.
protected  StandardMBean createExtensionMBean()
          no extension mbean
protected  ObjectName createExtensionMBeanName()
          no extension mbean
protected  MessageExchangeReceiver createMessageExchangeReceiver()
          creates a message receiver object that handles receiving and processing the message exchanges from the delivery channel.
protected  void deactivateServiceConsumers()
          disables the service consumers so that the service consumer can not send message exchange to the providers.
protected  void deactivateServiceProviders()
          disable the service providers so that the service consumers can not find the service endpoints for this service provider.
protected  void initMessageExchangeHandlerFactory()
          initializes the message exchange handler factory.
 
Methods inherited from class it.imolinfo.jbi4corba.jbi.component.runtime.AbstractComponentLifeCycle
getComponentRuntime, getExtensionMBeanName, init, onInit, 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

DefaultComponentLifeCycle

public DefaultComponentLifeCycle(ComponentRuntime compRuntime)
Method Detail

activateServiceProviders

protected void activateServiceProviders()
                                 throws javax.jbi.JBIException
Description copied from class: AbstractComponentLifeCycle
service providers initialization such as creating the service descriptions and activating the service endpoints should be done. If the component supports deployment, deployment manager should be notified to active service providers from the deployed service units. This method is invoked in the implementation of ComponentLifeCycle start method

Specified by:
activateServiceProviders in class AbstractComponentLifeCycle
Throws:
javax.jbi.JBIException

deactivateServiceProviders

protected void deactivateServiceProviders()
                                   throws javax.jbi.JBIException
Description copied from class: AbstractComponentLifeCycle
disable the service providers so that the service consumers can not find the service endpoints for this service provider. This method is invoked in the implementation of ComponentLifeCycle stop method

Specified by:
deactivateServiceProviders in class AbstractComponentLifeCycle
Throws:
javax.jbi.JBIException

activateServiceConsumers

protected void activateServiceConsumers()
                                 throws javax.jbi.JBIException
Description copied from class: AbstractComponentLifeCycle
service consumer initialization such as creating the service descriptions and activating the protocol specific external endpoints should be done. If the component supports deployment, deployment manager should be notified to initialize service consumers from the deployed service units. This method is invoked in the implementation of ComponentLifeCycle start method

Specified by:
activateServiceConsumers in class AbstractComponentLifeCycle
Throws:
javax.jbi.JBIException

deactivateServiceConsumers

protected void deactivateServiceConsumers()
                                   throws javax.jbi.JBIException
Description copied from class: AbstractComponentLifeCycle
disables the service consumers so that the service consumer can not send message exchange to the providers. This is called in the implemenation of component lifecycle stop method This method is invoked in the implementation of ComponentLifeCycle stop method

Specified by:
deactivateServiceConsumers in class AbstractComponentLifeCycle
Throws:
javax.jbi.JBIException

initMessageExchangeHandlerFactory

protected void initMessageExchangeHandlerFactory()
                                          throws javax.jbi.JBIException
Description copied from class: AbstractComponentLifeCycle
initializes the message exchange handler factory. components implement this method to provide their own handler factory

Specified by:
initMessageExchangeHandlerFactory in class AbstractComponentLifeCycle
Throws:
javax.jbi.JBIException

createMessageExchangeReceiver

protected MessageExchangeReceiver createMessageExchangeReceiver()
                                                         throws Exception
Description copied from class: AbstractComponentLifeCycle
creates a message receiver object that handles receiving and processing the message exchanges from the delivery channel. Component should implement this method to provide the MessageReceiver. Component may return null indicating that they don't need the message receiver that can receive and process message exchanges from delivery channel. For example, components that have only service consumers which send a synchronous messages to providers don't need this.

Specified by:
createMessageExchangeReceiver in class AbstractComponentLifeCycle
Returns:
Throws:
Exception

createExtensionMBeanName

protected ObjectName createExtensionMBeanName()
no extension mbean

Specified by:
createExtensionMBeanName in class AbstractComponentLifeCycle

createExtensionMBean

protected StandardMBean createExtensionMBean()
no extension mbean

Specified by:
createExtensionMBean in class AbstractComponentLifeCycle


Copyright © 2005-2010 Imola Informatica. All Rights Reserved.