|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.logic.ControllerManager
public class ControllerManager
Class responsible for instantiation of controllers. This class determines what controller should be used based on currently used component model, creates the controller instance if it wasn't created yet and caches created instances. This of course assumes that the controllers are implemented to be stateless and reentrant.
| Field Summary | |
|---|---|
protected ClassFactory |
m_controllerClassFactory
Class factory used to instantiate controller. |
| Constructor Summary | |
|---|---|
ControllerManager()
Default constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getControllerInstance(java.lang.Class controller)
Method to create actual controllers based on specified class. |
static java.lang.Object |
getInstance(java.lang.Class controller)
Create controller for specified class. |
static ControllerManager |
getManagerInstance()
Get the default instance. |
static void |
setManagerInstance(ControllerManager defaultInstance)
Set default instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ClassFactory m_controllerClassFactory
| Constructor Detail |
|---|
public ControllerManager()
| Method Detail |
|---|
public static java.lang.Object getInstance(java.lang.Class controller)
throws OSSException
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.
OSSException - - an error has occured
public static ControllerManager getManagerInstance()
throws OSSException
OSSException - - cannot get current databasepublic static void setManagerInstance(ControllerManager defaultInstance)
defaultInstance - - new default instancegetInstance(java.lang.Class)
public java.lang.Object getControllerInstance(java.lang.Class controller)
throws OSSException
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.
OSSException - - an error has occured
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||