org.castor.cpa

Class CPAConfiguration


public final class CPAConfiguration
extends Configuration

Castor configuration of CPA modul.
Version:
$Id: Configuration.java,v 1.8 2006/03/08 17:25:52 jens Exp $
Author:
Ralf Joachim
Since:
1.1.3

Field Summary

static String
CACHE_FACTORIES
Property listing all available Cache implementations (org.castor.cache.Factories).
static String
DEFAULT_TIMEZONE
Property name of default timezone in castor.properties.
static String
INITIALIZE_AT_LOAD
Property telling if database should be initialized when loading.
static String
KEYGENERATOR_FACTORIES
Property listing all the available key genence factories.
static String
LOB_BUFFER_SIZE
Property name of LOB buffer size in castor.properties.
static String
MSSQL_ANSI_COMPLIANT
Property specifying whether to use ANSI-compliant SQL for MS SQL Server.
static String
PERSISTENCE_FACTORIES
Property listing all the available persistence factories.
static String
TRANSACTION_MANAGER_FACTORIES
Property listing all the available TransactionManagerFactory implementations (org.castor.transactionmanager.Factories).
static String
TRANSACTION_MANAGER_INIT
Property telling if TransactionManager should be initialized at registration.
static String
TX_SYNCHRONIZABLE
Property listing all the available TxSynchronizable implementations (org.exolab.castor.persit.TxSynchronizable).
static String
TYPE_CONVERTORS
Property listing all available TypeConvertor implementations (org.castor.cpa.persistence.TypeConvertors).
static String
USE_JDBC30
Property specifying whether JDBC 3.0-specific features should be used, such as e.g.
static String
USE_JDBC_PROXIES
Property specifying whether JDBC proxy classes should be used
org.exolab.castor.persist.useProxies
.

Constructor Summary

CPAConfiguration(Configuration parent)
Construct a configuration with given parent.

Method Summary

static Configuration
getInstance()
Deprecated. Don't limit your applications flexibility by using a static configuration.
static Configuration
newInstance()
Factory method for a default CPA configuration instance.
static Configuration
newInstance(ClassLoader app, ClassLoader domain)
Factory method for a CPA configuration instance that uses the specified class loaders.

Methods inherited from class org.castor.core.util.Configuration

get, getApplicationClassLoader, getBoolean, getBoolean, getClass, getClassArray, getDomainClassLoader, getInteger, getInteger, getObject, getObjectArray, getString, getString, getStringArray, loadDefaultProperties, loadUserProperties, put, remove

Field Details

CACHE_FACTORIES

public static final String CACHE_FACTORIES
Property listing all available Cache implementations (org.castor.cache.Factories).

DEFAULT_TIMEZONE

public static final String DEFAULT_TIMEZONE
Property name of default timezone in castor.properties.

INITIALIZE_AT_LOAD

public static final String INITIALIZE_AT_LOAD
Property telling if database should be initialized when loading.

KEYGENERATOR_FACTORIES

public static final String KEYGENERATOR_FACTORIES
Property listing all the available key genence factories. (org.exolab.castor.jdo.keyGeneratorFactories).

LOB_BUFFER_SIZE

public static final String LOB_BUFFER_SIZE
Property name of LOB buffer size in castor.properties.

MSSQL_ANSI_COMPLIANT

public static final String MSSQL_ANSI_COMPLIANT
Property specifying whether to use ANSI-compliant SQL for MS SQL Server.
org.exolab.castor.jdo.sqlserver.ansi-compliant

PERSISTENCE_FACTORIES

public static final String PERSISTENCE_FACTORIES
Property listing all the available persistence factories. (org.exolab.castor.jdo.engines).

TRANSACTION_MANAGER_FACTORIES

public static final String TRANSACTION_MANAGER_FACTORIES
Property listing all the available TransactionManagerFactory implementations (org.castor.transactionmanager.Factories).

TRANSACTION_MANAGER_INIT

public static final String TRANSACTION_MANAGER_INIT
Property telling if TransactionManager should be initialized at registration.

TX_SYNCHRONIZABLE

public static final String TX_SYNCHRONIZABLE
Property listing all the available TxSynchronizable implementations (org.exolab.castor.persit.TxSynchronizable).

TYPE_CONVERTORS

public static final String TYPE_CONVERTORS
Property listing all available TypeConvertor implementations (org.castor.cpa.persistence.TypeConvertors).

USE_JDBC30

public static final String USE_JDBC30
Property specifying whether JDBC 3.0-specific features should be used, such as e.g. the use of Statement.getGeneratedKeys()
org.castor.jdo.use.jdbc30
.

USE_JDBC_PROXIES

public static final String USE_JDBC_PROXIES
Property specifying whether JDBC proxy classes should be used
org.exolab.castor.persist.useProxies
.

Constructor Details

CPAConfiguration

public CPAConfiguration(Configuration parent)
Construct a configuration with given parent. Application and domain class loaders will be initialized to the ones of the parent.
Note: This constructor is not intended for public use. Use one of the newInstance() methods instead.
Parameters:
parent - Parent configuration.

Method Details

getInstance

public static Configuration getInstance()

Deprecated. Don't limit your applications flexibility by using a static configuration. Use your own configuration instance created with one of the newInstance() methods instead.

Get the one and only static CPA configuration.
Returns:
One and only configuration instance for Castor CPA modul.

newInstance

public static Configuration newInstance()
Factory method for a default CPA configuration instance. Application and domain class loaders will be initialized to the one used to load the Configuration class. The configuration instance returned will be a CastorConfiguration with a CPAConfiguration, a XMLConfiguration and a CoreConfiguration instance as parents. The CastorConfiguration holding user specific properties is the only one that can be modified by put() and remove() methods. CPAConfiguration, XMLConfiguration and CoreConfiguration are responsble to deliver Castor's default values if they have not been overwritten by the user.
Returns:
Configuration instance for Castor CPA modul.

newInstance

public static Configuration newInstance(ClassLoader app,
                                        ClassLoader domain)
Factory method for a CPA configuration instance that uses the specified class loaders. The configuration instance returned will be a CastorConfiguration with a CPAConfiguration, a XMLConfiguration and a CoreConfiguration instance as parents. The CastorConfiguration holding user specific properties is the only one that can be modified by put() and remove() methods. CPAConfiguration, XMLConfiguration and CoreConfiguration are responsble to deliver Castor's default values if they have not been overwritten by the user.
Parameters:
app - Classloader to be used for all classes of Castor and its required libraries.
domain - Classloader to be used for all domain objects.
Returns:
Configuration instance for Castor CPA modul.

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com