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:
  • Field Summary

    Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    logger

    Fields inherited from interface org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected DataSource
    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 Details

    • SpringDataSourceFactoryBean

      public SpringDataSourceFactoryBean()
  • Method Details

    • 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<DataSource>
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<DataSource>
      Specified by:
      getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<DataSource>