org.mule.tck.testmodels.fruit
Class WaterMelon

java.lang.Object
  extended byorg.mule.tck.testmodels.fruit.WaterMelon
All Implemented Interfaces:
Disposable, Fruit, Serializable, Startable, Stoppable

public class WaterMelon
extends Object
implements Fruit, Startable, Stoppable, Disposable

See Also:
Serialized Form

Constructor Summary
WaterMelon()
           
WaterMelon(HashMap props)
           
 
Method Summary
 void bite()
           
 void dispose()
          A lifecycle method where implementor should free up any resources.
 boolean equals(Object obj)
           
 String getBrand()
           
 Double getRadius()
           
 Integer getSeeds()
           
 String getState()
           
 int hashCode()
           
 boolean isBitten()
           
 void myEventHandler(UMOEvent event)
           
 void setBrand(String string)
           
 void setRadius(Double double1)
           
 void setSeeds(Integer integer)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WaterMelon

public WaterMelon()

WaterMelon

public WaterMelon(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

myEventHandler

public void myEventHandler(UMOEvent event)
                    throws UMOException
Throws:
UMOException

getBrand

public String getBrand()
Returns:

getSeeds

public Integer getSeeds()
Returns:

getRadius

public Double getRadius()
Returns:

setBrand

public void setBrand(String string)
Parameters:
string -

setSeeds

public void setSeeds(Integer integer)
Parameters:
integer -

setRadius

public void setRadius(Double double1)
Parameters:
double1 -

getState

public String getState()

start

public void start()
Specified by:
start in interface Startable

stop

public void stop()
Specified by:
stop in interface Stoppable

dispose

public void dispose()
Description copied from interface: Disposable
A lifecycle method where implementor should free up any resources. If an exception is thrown it should just be logged and processing should continue. This method should not throw Runtime exceptions.

Specified by:
dispose in interface Disposable

equals

public boolean equals(Object obj)

hashCode

public int hashCode()


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