org.castor.cpa
Class CPAConfiguration
public final class CPAConfiguration
Castor configuration of CPA modul.
$Id: Configuration.java,v 1.8 2006/03/08 17:25:52 jens Exp $
get , getApplicationClassLoader , getBoolean , getBoolean , getClass , getClassArray , getDomainClassLoader , getInteger , getInteger , getObject , getObjectArray , getString , getString , getStringArray , loadDefaultProperties , loadUserProperties , put , remove |
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
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
.
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.
parent
- Parent configuration.
getInstance
public static Configuration getInstance()
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.
- 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.
- 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.
app
- Classloader to be used for all classes of Castor and its required libraries.domain
- Classloader to be used for all domain objects.
- Configuration instance for Castor CPA modul.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com