Package net.officefloor.jdbc.h2
Class H2DataSourceManagedObjectSource
- java.lang.Object
-
- net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource<O,F>
-
- net.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource<None,None>
-
- net.officefloor.jdbc.AbstractJdbcManagedObjectSource
-
- net.officefloor.jdbc.DataSourceManagedObjectSource
-
- net.officefloor.jdbc.h2.H2DataSourceManagedObjectSource
-
- All Implemented Interfaces:
ManagedObject
,ManagedObjectSource<None,None>
,ConnectionPoolDataSourceFactory
,DataSourceFactory
,H2DataSourceFactory
public class H2DataSourceManagedObjectSource extends DataSourceManagedObjectSource implements H2DataSourceFactory
- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.jdbc.AbstractJdbcManagedObjectSource
AbstractJdbcManagedObjectSource.ConnectionConnectivity, AbstractJdbcManagedObjectSource.Connectivity, AbstractJdbcManagedObjectSource.ConnectivityFactory
-
Nested classes/interfaces inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource
AbstractAsyncManagedObjectSource.DependencyLabeller<K extends java.lang.Enum<K>>, AbstractAsyncManagedObjectSource.ExecutionLabeller, AbstractAsyncManagedObjectSource.Labeller<K extends java.lang.Enum<K>>, AbstractAsyncManagedObjectSource.MetaDataContext<O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>, AbstractAsyncManagedObjectSource.SpecificationContext
-
-
Field Summary
-
Fields inherited from class net.officefloor.jdbc.AbstractJdbcManagedObjectSource
PROPERTY_DATA_SOURCE_FACTORY, PROPERTY_DATA_SOURCE_VALIDATE_SQL
-
Fields inherited from interface net.officefloor.jdbc.h2.H2DataSourceFactory
PROPERTY_PASSWORD, PROPERTY_URL, PROPERTY_USER
-
-
Constructor Summary
Constructors Constructor Description H2DataSourceManagedObjectSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConnectionPoolDataSourceFactory
getConnectionPoolDataSourceFactory(SourceContext context)
Allows overriding to configure a differentConnectionPoolDataSourceFactory
.protected DataSourceFactory
getDataSourceFactory(SourceContext context)
Allows overriding to configure a differentDataSourceFactory
.void
loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
Overridden to load specifications.-
Methods inherited from class net.officefloor.jdbc.DataSourceManagedObjectSource
getManagedObject, getObject, setupActive, setupMetaData, stop
-
Methods inherited from class net.officefloor.jdbc.AbstractJdbcManagedObjectSource
closeDataSource, loadMetaData, loadValidateConnectivity, newConnectionPoolDataSource, newDataSource, setConnectivity, validateConnectivity
-
Methods inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource
sourceManagedObject
-
Methods inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource
getSpecification, init, start
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.jdbc.h2.H2DataSourceFactory
createConnectionPoolDataSource, createDataSource
-
-
-
-
Method Detail
-
loadSpecification
public void loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
Description copied from class:AbstractAsyncManagedObjectSource
Overridden to load specifications.- Overrides:
loadSpecification
in classAbstractJdbcManagedObjectSource
- Parameters:
context
- Specifications.
-
getDataSourceFactory
protected DataSourceFactory getDataSourceFactory(SourceContext context)
Description copied from class:AbstractJdbcManagedObjectSource
Allows overriding to configure a differentDataSourceFactory
.- Overrides:
getDataSourceFactory
in classAbstractJdbcManagedObjectSource
- Parameters:
context
-SourceContext
.- Returns:
DataSourceFactory
.
-
getConnectionPoolDataSourceFactory
protected ConnectionPoolDataSourceFactory getConnectionPoolDataSourceFactory(SourceContext context)
Description copied from class:AbstractJdbcManagedObjectSource
Allows overriding to configure a differentConnectionPoolDataSourceFactory
.- Overrides:
getConnectionPoolDataSourceFactory
in classAbstractJdbcManagedObjectSource
- Parameters:
context
-SourceContext
.- Returns:
ConnectionPoolDataSourceFactory
.
-
-