com.ibm.retail.saf.provider.kiosk
Class KioskPOSProviderFactory

java.lang.Object
  |
  +--com.ibm.retail.saf.provider.kiosk.KioskPOSProviderFactory
All Implemented Interfaces:
POSProviderFactory

public class KioskPOSProviderFactory
extends java.lang.Object
implements POSProviderFactory

Provides an implementation of the factory pattern for KioskPOSProvider objects.

This implementation of the POSProviderFactory utilizes the factory pattern to create and return instances of KioskPOSProvider objects. It is responsible for creating the KioskPOSProvider objects that provide access to the services available on the point-of-sale system.


Field Summary
protected static com.ibm.retail.saf.provider.kiosk.KioskPOSProviderFactory instance
           
protected  java.util.HashMap providerCache
           
protected  com.ibm.retail.saf.server.POSServerFactory serverFactory
           
 
Constructor Summary
protected KioskPOSProviderFactory()
           
 
Method Summary
static com.ibm.retail.saf.provider.kiosk.KioskPOSProviderFactory getInstance()
          Get an instance of the factory.
 com.ibm.retail.saf.server.POSServerFactory getPOSServerFactory(com.ibm.retail.saf.provider.ProviderRequest providerRequest)
           
static void initialize()
          Get an instance of the factory.
 com.ibm.retail.saf.provider.POSProvider makePOSProvider(com.ibm.retail.saf.provider.ProviderRequest providerRequest)
          Create an instance of a POSProvider.
protected  void setPOSServerFactory(com.ibm.retail.saf.server.POSServerFactory aServerFactory)
          Method called to set up a non-standard POS Server Factory e.g. for test purposes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected static com.ibm.retail.saf.provider.kiosk.KioskPOSProviderFactory instance

providerCache

protected java.util.HashMap providerCache

serverFactory

protected com.ibm.retail.saf.server.POSServerFactory serverFactory
Constructor Detail

KioskPOSProviderFactory

protected KioskPOSProviderFactory()
Method Detail

initialize

public static void initialize()
Get an instance of the factory.

Returns:
instance of POSProviderFactory

getInstance

public static com.ibm.retail.saf.provider.kiosk.KioskPOSProviderFactory getInstance()
Get an instance of the factory.

Returns:
instance of POSProviderFactory

getPOSServerFactory

public com.ibm.retail.saf.server.POSServerFactory getPOSServerFactory(com.ibm.retail.saf.provider.ProviderRequest providerRequest)
                                                               throws POSException,
                                                                      java.rmi.RemoteException
POSException
java.rmi.RemoteException

makePOSProvider

public com.ibm.retail.saf.provider.POSProvider makePOSProvider(com.ibm.retail.saf.provider.ProviderRequest providerRequest)
                                                        throws java.rmi.RemoteException,
                                                               POSException
Description copied from interface: POSProviderFactory
Create an instance of a POSProvider.

Specified by:
makePOSProvider in interface POSProviderFactory
Parameters:
providerRequest - specifies the parameters to be used in creating this provider
Returns:
instance of POSProvider
Throws:
POSException - if an error occurs creating the provider
java.rmi.RemoteException

setPOSServerFactory

protected void setPOSServerFactory(com.ibm.retail.saf.server.POSServerFactory aServerFactory)
                            throws POSException
Method called to set up a non-standard POS Server Factory e.g. for test purposes

Throws:
POSException