org.opennms.netmgt.config
Class DataSourceFactoryBean

java.lang.Object
  extended by org.opennms.netmgt.config.DataSourceFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<DataSource>, org.springframework.beans.factory.InitializingBean

public class DataSourceFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<DataSource>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean

DataSourceFactoryBean class.

Version:
$Id: $
Author:
ranger

Constructor Summary
DataSourceFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
          afterPropertiesSet
 void destroy()
          destroy
 DataSource getObject()
          getObject
 Class<? extends DataSource> getObjectType()
          getObjectType
 boolean isSingleton()
          isSingleton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceFactoryBean

public DataSourceFactoryBean()
Method Detail

getObject

public DataSource getObject()
                     throws Exception

getObject

Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean<DataSource>
Returns:
a DataSource object.
Throws:
Exception - if any.

getObjectType

public Class<? extends DataSource> getObjectType()

getObjectType

Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean<DataSource>
Returns:
a Class object.

isSingleton

public boolean isSingleton()

isSingleton

Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean<DataSource>
Returns:
a boolean.

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception

afterPropertiesSet

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception - if any.

destroy

public void destroy()
             throws Exception

destroy

Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Throws:
Exception - if any.


Copyright © 2011. All Rights Reserved.