com.mulesoft.adapter.module
Class AbstractOperationHandler

java.lang.Object
  extended by com.mulesoft.adapter.module.AbstractOperationHandler
All Implemented Interfaces:
OperationHandler
Direct Known Subclasses:
CreateOperationHandler, DeleteOperationHandler, QueryOperationHandler, UpsertOperationHandler

public abstract class AbstractOperationHandler
extends Object
implements OperationHandler

Base OperationHandler implementation relying on a DynamicModule to handle operations.


Constructor Summary
AbstractOperationHandler(String methodName, org.mule.tools.module.invocation.DynamicModule module)
           
 
Method Summary
protected  org.mule.tools.module.invocation.DynamicModule getModule()
           
 String getOperationName()
           
protected
<T> T
invoke(Map<String,Object> parameters)
           
protected
<T> T
invoke(String processorName, Map<String,Object> parameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.mulesoft.adapter.module.OperationHandler
handle
 

Constructor Detail

AbstractOperationHandler

public AbstractOperationHandler(String methodName,
                                org.mule.tools.module.invocation.DynamicModule module)
Method Detail

getOperationName

public final String getOperationName()
Specified by:
getOperationName in interface OperationHandler
Returns:
operation name handled

getModule

protected final org.mule.tools.module.invocation.DynamicModule getModule()

invoke

protected final <T> T invoke(Map<String,Object> parameters)
                  throws org.mule.api.MuleException
Throws:
org.mule.api.MuleException

invoke

protected final <T> T invoke(String processorName,
                             Map<String,Object> parameters)
                  throws org.mule.api.MuleException
Throws:
org.mule.api.MuleException


Copyright © 2012. All Rights Reserved.