|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.unitils.database.UnitilsDataSourceFactoryBean
public class UnitilsDataSourceFactoryBean
Spring FactoryBean that provides access to the datasource configured in unitils.
<bean id="dataSource" class="org.unitils.database.UnitilsDataSourceFactoryBean"/>
| Constructor Summary | |
|---|---|
UnitilsDataSourceFactoryBean()
|
|
| Method Summary | |
|---|---|
Object |
getObject()
Gets the data source instance. |
Object |
getObject(String databaseName)
Gets the data source instance. |
Class<?> |
getObjectType()
Gets the type of the object provided by this FactoryBean, i.e. |
boolean |
isSingleton()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnitilsDataSourceFactoryBean()
| Method Detail |
|---|
public Object getObject(String databaseName)
throws Exception
Exception
public Object getObject()
throws Exception
getObject in interface org.springframework.beans.factory.FactoryBeanExceptionpublic Class<?> getObjectType()
FactoryBean, i.e. DataSource
getObjectType in interface org.springframework.beans.factory.FactoryBeanpublic boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||