Class EasyDeskTorqueComponent

All Implemented Interfaces:
org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.thread.ThreadSafe, Torque

public class EasyDeskTorqueComponent extends TorqueComponent
EasyDesk 에서 사용하는 Torque 초기화 component.
Version:
$id: EasyDeskTorqueComponent.java $Revision$, 12-29-21 10:08:53 AM KST
Author:
YounghoCho
  • Constructor Details

    • EasyDeskTorqueComponent

      public EasyDeskTorqueComponent()
      새로운 EasyDeskTorqueComponent 인스턴스를 생성한다.
  • Method Details

    • initialize

      public void initialize() throws Exception
      (non-Javadoc)
      Specified by:
      initialize in interface org.apache.avalon.framework.activity.Initializable
      Overrides:
      initialize in class TorqueComponent
      Throws:
      Exception - DOCUMENT ME!
      See Also:
      • Initializable.initialize()
    • loadOM

      protected void loadOM(TableMap[] tbMapArray) throws Exception
      This method loads all the classes in the com.easydesk.om package. The torque classes of Foo and FooPeer contain a circular relationship so loading the class of Foo requires a FooPeer instance and creating a FooPeer instance requires the Foo class to be loaded. It is possible to deadlock if multiple threads attempt to load Foo simultaneously. A full analysis of possible deadlock scenarios has not been done, so to be as safe as possible we create one instance of each om object via the Manager.getInstance() method; this makes sure the Managers are initialized as well. It may be possible to reduce this to only calling Class.forName on each class.
      Parameters:
      tbMapArray - DOCUMENT ME!
      Throws:
      Exception - DOCUMENT ME!