Package org.opennms.core.db
Class DataSourceFactoryBean
- java.lang.Object
-
- org.opennms.core.db.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.
-
-
Constructor Summary
Constructors Constructor Description DataSourceFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
afterPropertiesSetvoid
destroy()
destroyDataSource
getObject()
getObjectClass<? extends DataSource>
getObjectType()
getObjectTypeboolean
isSingleton()
isSingleton
-
-
-
Method Detail
-
getObject
public DataSource getObject() throws Exception
getObject
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<DataSource>
- Returns:
- a
DataSource
object. - Throws:
Exception
- if any.
-
getObjectType
public Class<? extends DataSource> getObjectType()
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<DataSource>
- Returns:
- a
Class
object.
-
isSingleton
public boolean isSingleton()
isSingleton
- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<DataSource>
- Returns:
- a boolean.
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
- if any.
-
-