Package org.apache.torque.avalon
Class TorqueComponent
- java.lang.Object
-
- org.apache.torque.TorqueInstance
-
- org.apache.torque.avalon.TorqueComponent
-
- 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 TorqueComponent extends TorqueInstance implements Torque, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.thread.ThreadSafe
Avalon component for Torque.- Version:
- $Id: TorqueComponent.java 1874175 2020-02-18 21:08:40Z tv $
- Author:
- Martin Poeschl, Henning P. Schmiedehausen, Thomas Vandahl
-
-
Constructor Summary
Constructors Constructor Description TorqueComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(org.apache.avalon.framework.configuration.Configuration configuration)
void
contextualize(org.apache.avalon.framework.context.Context context)
void
dispose()
void
enableLogging(org.apache.avalon.framework.logger.Logger aLogger)
org.apache.avalon.framework.logger.Logger
getLogger()
Convenience method to provide the Avalon logger the way AbstractLogEnabled does.void
initialize()
-
Methods 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, shutdown
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods 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
-
-
-
-
Method Detail
-
enableLogging
public void enableLogging(org.apache.avalon.framework.logger.Logger aLogger)
- Specified by:
enableLogging
in interfaceorg.apache.avalon.framework.logger.LogEnabled
- See Also:
LogEnabled.enableLogging(org.apache.avalon.framework.logger.Logger)
-
getLogger
public org.apache.avalon.framework.logger.Logger getLogger()
Convenience method to provide the Avalon logger the way AbstractLogEnabled does.- Returns:
- Logger instance
-
configure
public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
- Specified by:
configure
in interfaceorg.apache.avalon.framework.configuration.Configurable
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
-
contextualize
public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException
- Specified by:
contextualize
in interfaceorg.apache.avalon.framework.context.Contextualizable
- Throws:
org.apache.avalon.framework.context.ContextException
-
initialize
public void initialize() throws Exception
- Specified by:
initialize
in interfaceorg.apache.avalon.framework.activity.Initializable
- Throws:
Exception
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceorg.apache.avalon.framework.activity.Disposable
-
-