test.jdbc.datasource
Class InitializingDataSourceFactoryBean

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean
      extended by test.jdbc.datasource.InitializingDataSourceFactoryBean
All Implemented Interfaces:
BeanClassLoaderAware, BeanFactoryAware, DisposableBean, FactoryBean, InitializingBean

public class InitializingDataSourceFactoryBean
extends AbstractFactoryBean


Field Summary
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
InitializingDataSourceFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  Object createInstance()
           
protected  void destroyInstance(Object instance)
           
protected  void finalize()
           
 Class getObjectType()
           
 void setDataSource(DataSource dataSource)
           
 void setDestroyScript(Resource destroyScript)
           
 void setInitScripts(Resource[] initScripts)
           
 
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitializingDataSourceFactoryBean

public InitializingDataSourceFactoryBean()
Method Detail

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable
See Also:
Object.finalize()

destroyInstance

protected void destroyInstance(Object instance)
                        throws Exception
Overrides:
destroyInstance in class AbstractFactoryBean
Throws:
Exception

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Overrides:
afterPropertiesSet in class AbstractFactoryBean
Throws:
Exception

createInstance

protected Object createInstance()
                         throws Exception
Specified by:
createInstance in class AbstractFactoryBean
Throws:
Exception

getObjectType

public Class getObjectType()
Specified by:
getObjectType in interface FactoryBean
Specified by:
getObjectType in class AbstractFactoryBean

setInitScripts

public void setInitScripts(Resource[] initScripts)

setDestroyScript

public void setDestroyScript(Resource destroyScript)

setDataSource

public void setDataSource(DataSource dataSource)


Copyright © 2009 SpringSource. All Rights Reserved.