org.apache.servicemix.common
Class SyncLifeCycleWrapper

java.lang.Object
  extended by org.apache.servicemix.common.SyncLifeCycleWrapper
All Implemented Interfaces:
javax.jbi.component.ComponentLifeCycle, org.apache.servicemix.jbi.listener.MessageExchangeListener

public class SyncLifeCycleWrapper
extends java.lang.Object
implements javax.jbi.component.ComponentLifeCycle, org.apache.servicemix.MessageExchangeListener

Wrap an AsyncBaseLifeCycle into a lifecycle implementing MessageExchangeListener.


Constructor Summary
SyncLifeCycleWrapper(AsyncBaseLifeCycle lifeCycle)
           
 
Method Summary
 javax.management.ObjectName getExtensionMBeanName()
           
 void init(javax.jbi.component.ComponentContext componentContext)
           
 void onMessageExchange(javax.jbi.messaging.MessageExchange messageExchange)
           
 void shutDown()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncLifeCycleWrapper

public SyncLifeCycleWrapper(AsyncBaseLifeCycle lifeCycle)
Method Detail

getExtensionMBeanName

public javax.management.ObjectName getExtensionMBeanName()
Specified by:
getExtensionMBeanName in interface javax.jbi.component.ComponentLifeCycle

init

public void init(javax.jbi.component.ComponentContext componentContext)
          throws javax.jbi.JBIException
Specified by:
init in interface javax.jbi.component.ComponentLifeCycle
Throws:
javax.jbi.JBIException

shutDown

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

start

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

stop

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

onMessageExchange

public void onMessageExchange(javax.jbi.messaging.MessageExchange messageExchange)
                       throws javax.jbi.messaging.MessagingException
Specified by:
onMessageExchange in interface org.apache.servicemix.jbi.listener.MessageExchangeListener
Throws:
javax.jbi.messaging.MessagingException


Copyright © 2005-2012 FuseSource. All Rights Reserved.