public class DataSourceFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<DataSource>, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.InitializingBean
DataSource factory bean registration using EnableDataSource annotation.| Constructor and Description |
|---|
DataSourceFactoryBean(DataSourceConfigProperties configuration)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
DataSource |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setBeanClassLoader(ClassLoader classLoader) |
public DataSourceFactoryBean(DataSourceConfigProperties configuration)
configuration - Configuration propertiespublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAwarepublic DataSource getObject() throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<DataSource>Exceptionpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<DataSource>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<DataSource>Copyright © 2019 The Holon Platform. All rights reserved.