org.opensubsystems.core.application
Class ThickClientDependentClassFactory

java.lang.Object
  extended by org.opensubsystems.core.util.ClassFactory
      extended by org.opensubsystems.core.application.ThickClientDependentClassFactory

public class ThickClientDependentClassFactory
extends ClassFactory

Class factory responsible for instantiation of classes whose implementation depends on currently used thick client gui technology. Therefore this class factory tries to instantiate the correct class based on what technology is currently used.

Version:
$Id: ThickClientDependentClassFactory.java,v 1.4 2007/01/07 06:14:39 bastafidli Exp $
Author:
Miro Halas
Code reviewer:
Miro Halas
Code reviewed:
1.2 2006/01/30 14:10:43 bastafidli

Field Summary
protected  java.lang.String m_strGuiTechnology
          GUI technology used.
 
Constructor Summary
ThickClientDependentClassFactory(java.lang.String strGuiTechnology)
          Constructor
ThickClientDependentClassFactory(ThickClient client)
          Constructor
 
Method Summary
protected  void createDefaultClassNames(java.lang.String strClassIdentifier, java.lang.String strModifier, java.util.List lstClassNames)
          Create new class name based on the specified identifier and modifier.
protected  java.lang.String getModifier()
          Get modifier which should be used together with the class identifier to construct class names.
 
Methods inherited from class org.opensubsystems.core.util.ClassFactory
createConfiguredClassNames, createInstance, createInstance, createInstance, createInstance, getInstance, instantiateClass, setInstance, verifyInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_strGuiTechnology

protected java.lang.String m_strGuiTechnology
GUI technology used.

Constructor Detail

ThickClientDependentClassFactory

public ThickClientDependentClassFactory(java.lang.String strGuiTechnology)
Constructor

Parameters:
strGuiTechnology - - identification of GUI technology which will be used to identify classes which use it

ThickClientDependentClassFactory

public ThickClientDependentClassFactory(ThickClient client)
Constructor

Parameters:
client - - client requesting the factory
Method Detail

createDefaultClassNames

protected void createDefaultClassNames(java.lang.String strClassIdentifier,
                                       java.lang.String strModifier,
                                       java.util.List lstClassNames)
                                throws OSSException
Create new class name based on the specified identifier and modifier.

Overrides:
createDefaultClassNames in class ClassFactory
Parameters:
strClassIdentifier - - identifier of the class for which new instance should be created
strModifier - - modifier used together with identifier to query configured class name or null if none is available
lstClassNames - - container to add the possible class names to. The classes will be tried in order as they are added to this container.
Throws:
OSSException - - an error has occured

getModifier

protected java.lang.String getModifier()
                                throws OSSException
Get modifier which should be used together with the class identifier to construct class names.

Overrides:
getModifier in class ClassFactory
Returns:
String - modifier or null if no modifier should be used
Throws:
OSSException - - an error has occured


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