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:
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()
           
 void destroy()
           
 Class getObjectType()
           
 void setDataSource(DataSource dataSource)
           
 void setDestroyScript(Resource destroyScript)
           
 void setInitScript(Resource initScript)
           
 
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanFactory, setSingleton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitializingDataSourceFactoryBean

public InitializingDataSourceFactoryBean()
Method Detail

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface DisposableBean
Overrides:
destroy 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

setInitScript

public void setInitScript(Resource initScript)

setDestroyScript

public void setDestroyScript(Resource destroyScript)

setDataSource

public void setDataSource(DataSource dataSource)


Copyright © 2008 SpringSource. All Rights Reserved.