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.InitializingBean
Exception
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface org.springframework.beans.factory.BeanClassLoaderAware
public DataSource getObject() throws Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<DataSource>
Exception
public Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<DataSource>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<DataSource>
Copyright © 2020 The Holon Platform. All rights reserved.