Package com.easydesk.torque
Class EasyDeskTorqueComponent
java.lang.Object
org.apache.torque.TorqueInstance
org.apache.torque.avalon.TorqueComponent
com.easydesk.torque.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
EasyDesk 에서 사용하는 Torque 초기화 component.
- Version:
- $id: EasyDeskTorqueComponent.java $Revision$, 12-29-21 10:08:53 AM KST
- Author:
- YounghoCho
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid(non-Javadoc)protected voidThis method loads all the classes in the com.easydesk.om package.Methods inherited from class org.apache.torque.avalon.TorqueComponent
configure, contextualize, dispose, enableLogging, getLoggerMethods inherited from class org.apache.torque.TorqueInstance
closeConnection, getAdapter, getConfiguration, getConnection, getConnection, getConnection, getDatabase, getDatabaseMap, getDatabaseMap, getDatabases, getDataSourceFactory, getDefaultDB, getManager, getManager, getOrCreateDatabase, getPeerInstance, getSchema, init, init, initManagerMappings, isInit, registerIDBroker, registerPeerInstance, setConfiguration, setSchema, shutdownMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.torque.avalon.Torque
closeConnection, getAdapter, getConfiguration, getConnection, getConnection, getConnection, getDatabase, getDatabaseMap, getDatabaseMap, getDatabases, getDefaultDB, getManager, getManager, getOrCreateDatabase, getSchema, isInit, setSchema
-
Constructor Details
-
EasyDeskTorqueComponent
public EasyDeskTorqueComponent()새로운EasyDeskTorqueComponent인스턴스를 생성한다.
-
-
Method Details
-
initialize
(non-Javadoc)- Specified by:
initializein interfaceorg.apache.avalon.framework.activity.Initializable- Overrides:
initializein classTorqueComponent- Throws:
Exception- DOCUMENT ME!- See Also:
-
loadOM
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!
-