|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springmodules.orm.orbroker.BrokerFactoryBean
public class BrokerFactoryBean
FactoryBean that creates a local O/R Broker's Broker instance. Behaves like a Broker instance when used as bean reference, e.g. for BrokerTemplate's "broker" property.
The typical usage will be to register this as singleton factory (for a certain underlying JDBC DataSource) in an application context, and give bean references to application services that need it.
BrokerAccessor.setBroker(Broker)| Constructor Summary | |
|---|---|
BrokerFactoryBean()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
java.lang.Object |
getObject()
|
java.lang.Class |
getObjectType()
|
boolean |
isSingleton()
|
void |
setConfigLocation(Resource configLocation)
Set the location of the O/R Broker config file. |
void |
setDataSource(javax.sql.DataSource dataSource)
Set the DataSource to be used by O/R Broker. |
void |
setTextReplacements(java.util.Properties textReplacements)
Set text replacement values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BrokerFactoryBean()
| Method Detail |
|---|
public void setDataSource(javax.sql.DataSource dataSource)
public void setConfigLocation(Resource configLocation)
public void setTextReplacements(java.util.Properties textReplacements)
{{key}}
type properties in an sql-statement with the values.
public void afterPropertiesSet()
throws java.io.IOException
java.io.IOException
public java.lang.Object getObject()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Class getObjectType()
public boolean isSingleton()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||