org.ikasan.framework.plugins
Class PayloadInvocablePojoWrapper
java.lang.Object
org.ikasan.framework.plugins.PojoWrapperPlugin
org.ikasan.framework.plugins.PayloadInvocablePojoWrapper
- All Implemented Interfaces:
- PayloadInvocable, Plugin
public class PayloadInvocablePojoWrapper
- extends PojoWrapperPlugin
- implements PayloadInvocable
Wrapper class for plugins that do not implement the PayloadInvocable interface, but nonetheless have a
functional method that matches the parameter list.
All wrapped plugins must still provide a public void method that takes as arguments a Payload, along
with a TargetParams object
- Author:
- Ikasan Development Team
|
Method Summary |
void |
invoke(Payload payload)
Invoke this plugin with a Payload |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PayloadInvocablePojoWrapper
public PayloadInvocablePojoWrapper(Object pojo,
String pojoMethodName)
- Constructor
- Parameters:
pojo - POJO to wrappojoMethodName - Method on the POJO to execute
invoke
public void invoke(Payload payload)
throws PluginInvocationException
- Description copied from interface:
PayloadInvocable
- Invoke this plugin with a
Payload
- Specified by:
invoke in interface PayloadInvocable
- Parameters:
payload - The payload to work with
- Throws:
PluginInvocationException - Exception if we could not invoke the plugin
Copyright © 2007-2012 Ikasan. All Rights Reserved.