net.bull.javamelody
Class SpringDataSourceFactoryBean

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean
      extended by net.bull.javamelody.SpringDataSourceFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class SpringDataSourceFactoryBean
extends org.springframework.beans.factory.config.AbstractFactoryBean

Spring FactoryBean for wrapping datasources with monitoring proxy.

Author:
David J. M. Karlsen (davidkarlsen at gmail.com), Emeric Vernat
See Also:
AbstractFactoryBean, JdbcWrapper

Field Summary
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
SpringDataSourceFactoryBean()
           
 
Method Summary
protected  DataSource createInstance()
          
 Class<?> getObjectType()
          
 void setTargetName(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringDataSourceFactoryBean

public SpringDataSourceFactoryBean()
Method Detail

setTargetName

public void setTargetName(String targetName)
Name of target bean to instrument. This should implement DataSource.

Parameters:
targetName - name of bean, not null.

createInstance

protected DataSource createInstance()

Specified by:
createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean

getObjectType

public Class<?> getObjectType()

Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean
Specified by:
getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean


Copyright © 2008-2011 Emeric Vernat. All Rights Reserved.