org.mule.test.integration.spring.events.async
Class AsyncOrderManagerBean
java.lang.Object
org.mule.test.integration.spring.events.TestMuleEventBean
org.mule.test.integration.spring.events.OrderManagerBean
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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsyncOrderManagerBean
public AsyncOrderManagerBean()
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.