org.opensubsystems.core.logic
Class J2EEControllerManager

java.lang.Object
  extended by org.opensubsystems.core.logic.ControllerManager
      extended by org.opensubsystems.core.logic.J2EEControllerManager

public class J2EEControllerManager
extends ControllerManager

Class responsible for instantiation of j2ee controllers. This class determines what controller should be used based on currently used component model, creates the j2ee controller instance if it wasn't created yet and caches created instances. This of course assumes that the j2ee controllers are implemented to be stateless and reentrant.

Version:
$Id: J2EEControllerManager.java,v 1.11 2007/01/07 06:15:14 bastafidli Exp $
Author:
Julo Legeny
Code reviewer:
Miro Halas
Code reviewed:
1.9 2005/03/01 23:10:47 jlegeny

Field Summary
protected  java.util.Map m_mpControllerLookupCache
          Cache where controller classes from processed lookup will be cached.
 
Fields inherited from class org.opensubsystems.core.logic.ControllerManager
m_controllerClassFactory
 
Constructor Summary
J2EEControllerManager()
           
 
Method Summary
 java.lang.Object getControllerInstance(java.lang.Class controller)
          Method to create actual controllers based on specified class.
 
Methods inherited from class org.opensubsystems.core.logic.ControllerManager
getInstance, getManagerInstance, setManagerInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_mpControllerLookupCache

protected java.util.Map m_mpControllerLookupCache
Cache where controller classes from processed lookup will be cached.

Constructor Detail

J2EEControllerManager

public J2EEControllerManager()
Method Detail

getControllerInstance

public java.lang.Object getControllerInstance(java.lang.Class controller)
                                       throws OSSException
Method to create actual controllers based on specified class. This method can be overriden and new manager can be setup either through setManagerInstance or through configuration file if different strategy is desired.

Overrides:
getControllerInstance in class ControllerManager
Parameters:
controller - - the controller interface for which we want applicable controller. This is usually component model independent class and we will try to create dependent class.
Returns:
DataFactory - the data factory to use for given interface
Throws:
OSSException - - an error has occured


Copyright © 2003 - 2006 OpenSubsystems s.r.o.