| java.lang.Object org.jasig.portal.rdbm.pool.PooledDataSourceFactoryFactory
PooledDataSourceFactoryFactory | final public class PooledDataSourceFactoryFactory (Code) | | author: Eric Dalquist edalquist@unicon.net version: $Revision: 36214 $ $Date: 2005-10-19 09:25:55 -0700 (Wed, 19 Oct 2005) $ since: uPortal 2.5 |
Field Summary | |
final static Class | DEFAULT_POOLED_DATASOURCE_FACTORY Our default IPooledDataSourceFactory implementation upon which we will fall back if
our property is not set or we cannot instantiate the implementation specified by
our property. | final public static String | POOLED_DATA_SOURCE_FACTORY_PROPERTY The name of the portal.properties property the value of which will be the name of the
IPooledDataSourceFactory implementation that we will use. |
Method Summary | |
public static synchronized IPooledDataSourceFactory | getPooledDataSourceFactory() Get a reference to our static singleton instance of IPooledDataSourceFactory
as specified in our portal.properties property, or our default implementation, or null.
That is, this method returns our static singleton instance of IPooledDataSourceFactory.
That instance will be an instance of the implementation named in our portal.properties property
if we are able to instantiate that, or an instance of our default implementation if we were
unable to instantiate the configured implementation, or null if we can instantiate neither.
This method is synchronized to avoid using the much-feared Double Checked Locking
idiom. | static void | reset() Clears this static factory's static singleton instance of
IPooledDataSourceFactory. |
DEFAULT_POOLED_DATASOURCE_FACTORY | final static Class DEFAULT_POOLED_DATASOURCE_FACTORY(Code) | | Our default IPooledDataSourceFactory implementation upon which we will fall back if
our property is not set or we cannot instantiate the implementation specified by
our property.
Default scoped to be accessible to our testcase.
|
POOLED_DATA_SOURCE_FACTORY_PROPERTY | final public static String POOLED_DATA_SOURCE_FACTORY_PROPERTY(Code) | | The name of the portal.properties property the value of which will be the name of the
IPooledDataSourceFactory implementation that we will use.
|
getPooledDataSourceFactory | public static synchronized IPooledDataSourceFactory getPooledDataSourceFactory()(Code) | | Get a reference to our static singleton instance of IPooledDataSourceFactory
as specified in our portal.properties property, or our default implementation, or null.
That is, this method returns our static singleton instance of IPooledDataSourceFactory.
That instance will be an instance of the implementation named in our portal.properties property
if we are able to instantiate that, or an instance of our default implementation if we were
unable to instantiate the configured implementation, or null if we can instantiate neither.
This method is synchronized to avoid using the much-feared Double Checked Locking
idiom. By synchronizing we force the change we make when we first (lazily) initialize
our pooledDataSourceFactoryImpl to be written back to main memory and thereby
be available to other threads when they succeed in obtaining the lock and entering
this method.
the configured or default IPooledDataSourceFactory, or null if neither can be instantiated. |
reset | static void reset()(Code) | | Clears this static factory's static singleton instance of
IPooledDataSourceFactory. This method exists to support the unit test
for this class and should not be considered part of the API exported
by this class.
|
|
|