org.ikasan.framework.plugins
Class EventInvocablePojoWrapper

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

Field Summary
 
Fields inherited from class org.ikasan.framework.plugins.PojoWrapperPlugin
pojo
 
Constructor Summary
EventInvocablePojoWrapper(Object pojo, String pojoMethodName)
          Constructor
 
Method Summary
 void invoke(Event event)
          Invoke this plugin with an Event
 
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

EventInvocablePojoWrapper

public EventInvocablePojoWrapper(Object pojo,
                                 String pojoMethodName)
Constructor

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

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.