org.strutsme.wishlist.persistence.facade
Class WishlistPersistenceFacadeFake

java.lang.Object
  extended by org.strutsme.wishlist.persistence.facade.AbstractWishlistPersistenceFacade
      extended by org.strutsme.wishlist.persistence.facade.WishlistPersistenceFacadeFake
All Implemented Interfaces:
WishlistPersistenceFacade

public class WishlistPersistenceFacadeFake
extends AbstractWishlistPersistenceFacade

Fakes a user and wishes.

Author:
lbusmann

Field Summary
 
Fields inherited from class org.strutsme.wishlist.persistence.facade.AbstractWishlistPersistenceFacade
count, users, wishes
 
Constructor Summary
WishlistPersistenceFacadeFake()
          Empty constructor.
 
Method Summary
protected  void load()
          Should load the data and update the instance variables.
protected  void stateChanged()
          Called if the state changed.
 
Methods inherited from class org.strutsme.wishlist.persistence.facade.AbstractWishlistPersistenceFacade
addDummyWishes, createWish, deleteWish, getDefaultUser, getUserById, getUserByName, getWishById, getWishes, saveWish
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WishlistPersistenceFacadeFake

public WishlistPersistenceFacadeFake()
                              throws java.io.IOException,
                                     java.lang.ClassNotFoundException
Empty constructor. The exceptions require this.

Throws:
java.lang.ClassNotFoundException - if the wishes couldn't be loaded
java.io.IOException - if the wishes couldn't be loaded
Method Detail

load

protected final void load()
                   throws java.io.IOException,
                          java.lang.ClassNotFoundException
Should load the data and update the instance variables.

Specified by:
load in class AbstractWishlistPersistenceFacade
Throws:
java.io.IOException - if the wishes couldn't be loaded
java.lang.ClassNotFoundException - if the wishes couldn't be loaded

stateChanged

protected final void stateChanged()
                           throws java.io.IOException
Called if the state changed. Can be used to save it.

Specified by:
stateChanged in class AbstractWishlistPersistenceFacade
Throws:
java.io.IOException - if for example the saving failed.