com.theopenstack.rtpdemo.model.adapter
Class AdapterFactory

java.lang.Object
  |
  +--com.theopenstack.rtpdemo.model.adapter.AdapterFactory

public class AdapterFactory
extends java.lang.Object

Adapter Factory returns an adapter instance based on the User VO - Business Unit attribute. Hence this class needs to know all the adapters we are supporting. As we add more adapters we will need add those to this class and corresponding create methods.


Constructor Summary
AdapterFactory()
           
 
Method Summary
static RTPDEMOAdapterIF getAdapter(UserVO userVO)
          This is the only public method, returns an implementation of the adapter interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdapterFactory

public AdapterFactory()
Method Detail

getAdapter

public static RTPDEMOAdapterIF getAdapter(UserVO userVO)
This is the only public method, returns an implementation of the adapter interface.

Parameters:
userVO - userVO is used to get the BU and decide which adapter to return based on the BU value
Returns:
RTPDEMOAdapterIf