org.mule.test.integration.spring.events.async
Class AsyncOrderManagerBean

java.lang.Object
  extended by org.mule.test.integration.spring.events.TestMuleEventBean
      extended by org.mule.test.integration.spring.events.OrderManagerBean
          extended by org.mule.test.integration.spring.events.async.AsyncOrderManagerBean
All Implemented Interfaces:
EventListener, MuleEventListener, MuleSubscriptionEventListener, AsyncOrderManager, OrderManager, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener

public class AsyncOrderManagerBean
extends OrderManagerBean
implements AsyncOrderManager, org.springframework.context.ApplicationContextAware

OrderManagerBean receives order beans from Mule and dispatches process relsults back through Mule via the applicationContext.


Constructor Summary
AsyncOrderManagerBean()
           
 
Method Summary
 void processOrderAsync(Order order)
          This will be invoked using as a web service.
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
          We need the application context to send our asyncronous result somewhere
 
Methods inherited from class org.mule.test.integration.spring.events.OrderManagerBean
getSubscriptions, onApplicationEvent, processOrder, setSubscriptions
 
Methods inherited from class org.mule.test.integration.spring.events.TestMuleEventBean
getEventCallback, setEventCallback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncOrderManagerBean

public AsyncOrderManagerBean()
Method Detail

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
We need the application context to send our asyncronous result somewhere

Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Parameters:
applicationContext -
Throws:
org.springframework.beans.BeansException

processOrderAsync

public void processOrderAsync(Order order)
This will be invoked using as a web service. We'll return the result to a processing queue

Specified by:
processOrderAsync in interface AsyncOrderManager
Parameters:
order -


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.