@Configuration @ConditionalOnProperty(name="spring.dataflow.embedded.database.enabled", havingValue="true", matchIfMissing=true) @ConditionalOnExpression(value="#{\'${spring.datasource.url:}\'.startsWith(\'jdbc:h2:tcp://localhost:\')}") public static class DataFlowServerConfiguration.H2ServerConfiguration extends Object
Constructor and Description |
---|
H2ServerConfiguration() |
Modifier and Type | Method and Description |
---|---|
DataflowRdbmsInitializer |
dataflowRdbmsInitializer(DataSource dataSource,
FeaturesProperties featuresProperties) |
org.h2.tools.Server |
initH2TCPServer() |
org.springframework.jdbc.datasource.DataSourceTransactionManager |
transactionManagerForServer(DataSource dataSource) |
@Bean(destroyMethod="stop") public org.h2.tools.Server initH2TCPServer()
@Bean @DependsOn(value="initH2TCPServer") public org.springframework.jdbc.datasource.DataSourceTransactionManager transactionManagerForServer(DataSource dataSource)
@Bean @DependsOn(value="initH2TCPServer") public DataflowRdbmsInitializer dataflowRdbmsInitializer(DataSource dataSource, FeaturesProperties featuresProperties)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.