org.mule.tck.testmodels.fruit
Class Orange

java.lang.Object
  extended byorg.mule.tck.testmodels.fruit.Orange
All Implemented Interfaces:
Callable, Fruit, Serializable, UMOEventListener

public class Orange
extends Object
implements Fruit, Callable

See Also:
Serialized Form

Constructor Summary
Orange()
           
Orange(HashMap props)
           
Orange(Integer segments, Double radius, String brand)
           
 
Method Summary
 void bite()
           
 boolean equals(Object obj)
           
 List getArrayProperties()
           
 String getBrand()
           
 FruitCleaner getCleaner()
           
 List getListProperties()
           
 Map getMapProperties()
           
 Double getRadius()
           
 Integer getSegments()
           
 int hashCode()
           
 boolean isBitten()
           
 Object onCall(UMOEventContext context)
          Passes the event to the listener
 void polish()
           
 void setArrayProperties(List arrayProperties)
           
 void setBrand(String string)
           
 void setCleaner(FruitCleaner cleaner)
           
 void setListProperties(List listProperties)
           
 void setMapProperties(Map mapProperties)
           
 void setRadius(Double double1)
           
 void setSegments(Integer integer)
           
 void wash()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Orange

public Orange()

Orange

public Orange(Integer segments,
              Double radius,
              String brand)

Orange

public Orange(HashMap props)
       throws UMOException
Method Detail

bite

public void bite()
Specified by:
bite in interface Fruit

isBitten

public boolean isBitten()
Specified by:
isBitten in interface Fruit

onCall

public Object onCall(UMOEventContext context)
              throws UMOException
Description copied from interface: Callable
Passes the event to the listener

Specified by:
onCall in interface Callable
Parameters:
context - the context of the current event being process
Returns:
Object this object can be anything. When the UMOLifecycleAdapter for the component receives this object it will first see if the Object is an UMOMessage if not and the Object is not null a new message will be created using the returned object as the payload. This new event will then get published via the configured outbound router if-
  1. One has been configured for the UMO.
  2. the setStopFurtherProcessing(true) wasn't called on the event context event.
Throws:
UMOException

getBrand

public String getBrand()
Returns:

getSegments

public Integer getSegments()
Returns:

getRadius

public Double getRadius()
Returns:

setBrand

public void setBrand(String string)
Parameters:
string -

setSegments

public void setSegments(Integer integer)
Parameters:
integer -

setRadius

public void setRadius(Double double1)
Parameters:
double1 -

getListProperties

public List getListProperties()
Returns:
Returns the listProperties.

setListProperties

public void setListProperties(List listProperties)
Parameters:
listProperties - The listProperties to set.

getMapProperties

public Map getMapProperties()
Returns:
Returns the mapProperties.

setMapProperties

public void setMapProperties(Map mapProperties)
Parameters:
mapProperties - The mapProperties to set.

getArrayProperties

public List getArrayProperties()
Returns:
Returns the arrayProperties.

setArrayProperties

public void setArrayProperties(List arrayProperties)
Parameters:
arrayProperties - The arrayProperties to set.

getCleaner

public FruitCleaner getCleaner()

setCleaner

public void setCleaner(FruitCleaner cleaner)

wash

public void wash()

polish

public void polish()

hashCode

public int hashCode()

equals

public boolean equals(Object obj)


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.