public final class TaskRepositoryInitializer extends Object implements org.springframework.beans.factory.InitializingBean
DataSource
is available in the current context, and functionality is enabled
(as it is by default), this will initialize the database. If more than one DataSource
is available in the current context, custom configuration of this is required
(if desired).
By default, initialization of the database can be disabled by configuring the property
spring.cloud.task.initialize.enable
to false.Constructor and Description |
---|
TaskRepositoryInitializer() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
setDataSource(DataSource dataSource) |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) |
public void setDataSource(DataSource dataSource)
@Autowired(required=false) public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.