org.ikasan.framework.plugins
Class PojoWrapperPlugin

java.lang.Object
  extended by org.ikasan.framework.plugins.PojoWrapperPlugin
Direct Known Subclasses:
EventInvocablePojoWrapper, PayloadInvocablePojoWrapper

public abstract class PojoWrapperPlugin
extends Object

Abstract class for POJO wrapper plugins

Author:
Ikasan Development Team

Field Summary
protected  Object pojo
          POJO that is being wrapped
 
Constructor Summary
PojoWrapperPlugin(Object pojo, String pojoMethodName)
          Constructor
 
Method Summary
protected  void invoke(Object[] params, Class<?>[] paramTypes)
          finds and invokes the method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pojo

protected Object pojo
POJO that is being wrapped

Constructor Detail

PojoWrapperPlugin

public PojoWrapperPlugin(Object pojo,
                         String pojoMethodName)
Constructor

Parameters:
pojo - The POJO being wrapped
pojoMethodName - The name of the method on the POJO to be executed
Method Detail

invoke

protected void invoke(Object[] params,
                      Class<?>[] paramTypes)
               throws PluginInvocationException
finds and invokes the method

Parameters:
params - The method parameters
paramTypes - THe method parameter types
Throws:
PluginInvocationException - Exception if the plugin could not be invoked


Copyright © 2007-2012 Ikasan. All Rights Reserved.