org.mule.example.scripting
Class AccumulatorComponent

java.lang.Object
  extended by org.mule.example.scripting.AccumulatorComponent
All Implemented Interfaces:
org.mule.api.lifecycle.Callable, org.mule.api.lifecycle.EventListener

public class AccumulatorComponent
extends Object
implements org.mule.api.lifecycle.Callable

Component which accumulates successive numbers, by adding/subtracting/multiplying/dividing.


Constructor Summary
AccumulatorComponent()
           
 
Method Summary
 String getOperation()
           
 Object onCall(org.mule.api.MuleEventContext context)
           
 void setOperation(String operation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccumulatorComponent

public AccumulatorComponent()
Method Detail

onCall

public Object onCall(org.mule.api.MuleEventContext context)
              throws Exception
Specified by:
onCall in interface org.mule.api.lifecycle.Callable
Throws:
Exception

getOperation

public String getOperation()

setOperation

public void setOperation(String operation)


Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.