org.ikasan.framework.plugins
Class EventInvocablePojoWrapper
java.lang.Object
org.ikasan.framework.plugins.PojoWrapperPlugin
org.ikasan.framework.plugins.EventInvocablePojoWrapper
- All Implemented Interfaces:
- EventInvocable, Plugin
public class EventInvocablePojoWrapper
- extends PojoWrapperPlugin
- implements EventInvocable
Wrapper class for plugins that do not implement the EventInvocable 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 an Event, along with
a TargetParams object
- Author:
- Ikasan Development Team
|
Method Summary |
void |
invoke(Event event)
Invoke this plugin with an Event |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventInvocablePojoWrapper
public EventInvocablePojoWrapper(Object pojo,
String pojoMethodName)
- Constructor
- Parameters:
pojo - The POJO to wrappojoMethodName - The method to execute on the POJO
invoke
public void invoke(Event event)
throws PluginInvocationException
- Description copied from interface:
EventInvocable
- Invoke this plugin with an
Event
- Specified by:
invoke in interface EventInvocable
- Parameters:
event - The event to pass to the plugin
- Throws:
PluginInvocationException - Exception if the plugin could not be invoked
Copyright © 2007-2012 Ikasan. All Rights Reserved.