org.ikasan.framework.plugins
Class PojoWrapperPlugin
java.lang.Object
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 |
|
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 |
pojo
protected Object pojo
- POJO that is being wrapped
PojoWrapperPlugin
public PojoWrapperPlugin(Object pojo,
String pojoMethodName)
- Constructor
- Parameters:
pojo - The POJO being wrappedpojoMethodName - The name of the method on the POJO to be executed
invoke
protected void invoke(Object[] params,
Class<?>[] paramTypes)
throws PluginInvocationException
- finds and invokes the method
- Parameters:
params - The method parametersparamTypes - THe method parameter types
- Throws:
PluginInvocationException - Exception if the plugin could not be invoked
Copyright © 2007-2012 Ikasan. All Rights Reserved.