org.paneris.melati.shopping
Class MelatiShoppingConfig

java.lang.Object
  extended by org.paneris.melati.shopping.MelatiShoppingConfig

public class MelatiShoppingConfig
extends java.lang.Object

The MelatiShoppingConfig provides configuration information for the Melati Shopping Interface.


Constructor Summary
MelatiShoppingConfig()
          Construct a MelatiShoppingConfig object.
 
Method Summary
 ShoppingTrolley getShoppingTrolley()
          Get a ShoppingTrolley Object as defined in the properties file.
 ShoppingTrolleyItem getShoppingTrolleyItem()
          Get a ShoppingTrolleyItem Object as defined in the properties file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MelatiShoppingConfig

public MelatiShoppingConfig()
                     throws ShoppingConfigException
Construct a MelatiShoppingConfig object. If the propeties file is not found default properties will be used.

Throws:
ShoppingConfigException - - if there is an error loading the file
Method Detail

getShoppingTrolley

public ShoppingTrolley getShoppingTrolley()
                                   throws org.melati.util.InstantiationPropertyException
Get a ShoppingTrolley Object as defined in the properties file. If no definition is found, a default DefaultShoppingTrolley will be returned.

Returns:
- a shopping trolley object as defined in the properties file
Throws:
org.melati.util.InstantiationPropertyException - if we cannot instantiate the object

getShoppingTrolleyItem

public ShoppingTrolleyItem getShoppingTrolleyItem()
                                           throws org.melati.util.InstantiationPropertyException
Get a ShoppingTrolleyItem Object as defined in the properties file. If no definition is found, a default DefaultShoppingTrolleyItem will be returned

Returns:
- a shopping trolley item object as defined in the properties file
Throws:
org.melati.util.InstantiationPropertyException - if we cannot instantiate the object


Copyright © 1997-2009 PanEris. All Rights Reserved.