Package net.officefloor.jdbc.h2
Class H2ReadOnlyConnectionManagedObjectSource
- 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.ReadOnlyConnectionManagedObjectSource
-
- net.officefloor.jdbc.h2.H2ReadOnlyConnectionManagedObjectSource
-
- All Implemented Interfaces:
ManagedObject
,ManagedObjectSource<None,None>
,ConnectionPoolDataSourceFactory
,DataSourceFactory
,H2DataSourceFactory
public class H2ReadOnlyConnectionManagedObjectSource extends ReadOnlyConnectionManagedObjectSource implements H2DataSourceFactory
H2 read-onlyConnectionManagedObjectSource
.- 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 H2ReadOnlyConnectionManagedObjectSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.ReadOnlyConnectionManagedObjectSource
getManagedObject, getObject, setupActive, setupMetaData, start, stop
-
Methods inherited from class net.officefloor.jdbc.AbstractJdbcManagedObjectSource
closeDataSource, getConnectionPoolDataSourceFactory, 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
-
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
.
-
-