org.ikasan.framework.plugins
Class PayloadInvocablePojoWrapper

java.lang.Object
  extended by org.ikasan.framework.plugins.PojoWrapperPlugin
      extended by 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

Field Summary
 
Fields inherited from class org.ikasan.framework.plugins.PojoWrapperPlugin
pojo
 
Constructor Summary
PayloadInvocablePojoWrapper(Object pojo, String pojoMethodName)
          Constructor
 
Method Summary
 void invoke(Payload payload)
          Invoke this plugin with a Payload
 
Methods inherited from class org.ikasan.framework.plugins.PojoWrapperPlugin
invoke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PayloadInvocablePojoWrapper

public PayloadInvocablePojoWrapper(Object pojo,
                                   String pojoMethodName)
Constructor

Parameters:
pojo - POJO to wrap
pojoMethodName - Method on the POJO to execute
Method Detail

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.