Package net.bull.javamelody
Class SpringDataSourceFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<DataSource>
net.bull.javamelody.SpringDataSourceFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.FactoryBean<DataSource>,org.springframework.beans.factory.InitializingBean
public class SpringDataSourceFactoryBean
extends org.springframework.beans.factory.config.AbstractFactoryBean<DataSource>
Spring
FactoryBean for wrapping datasources with monitoring proxy.- Author:
- David J. M. Karlsen (davidkarlsen at gmail.com), Emeric Vernat
- See Also:
-
AbstractFactoryBeanJdbcWrapper
-
Field Summary
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
loggerFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DataSourceClass<?>voidsetTargetName(String targetName) Name of target bean to instrument.Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
SpringDataSourceFactoryBean
public SpringDataSourceFactoryBean()
-
-
Method Details
-
setTargetName
Name of target bean to instrument. This should implement DataSource.- Parameters:
targetName- name of bean, not null.
-
createInstance
- Specified by:
createInstancein classorg.springframework.beans.factory.config.AbstractFactoryBean<DataSource>
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<DataSource>- Specified by:
getObjectTypein classorg.springframework.beans.factory.config.AbstractFactoryBean<DataSource>
-