|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.transaction.jta.WebSphereTransactionManagerFactoryBean
FactoryBean that retrieves the JTA TransactionManager for IBM's WebSphere application servers (versions 5.1, 5.0 and 4).
Uses WebSphere's static access methods to obtain the JTA TransactionManager (different for WebSphere 5.1, 5.0 and 4).
The strategy has been kindly borrowed from Hibernate's WebSphereTransactionManagerLookup class.
JtaTransactionManager.setTransactionManager(javax.transaction.TransactionManager)
,
WebSphereTransactionManagerLookup
,
com.ibm.ws.Transaction.TransactionManagerFactory#getTransactionManager
,
com.ibm.ejs.jts.jta.JTSXA#getTransactionManager
,
com.ibm.ejs.jts.jta.TransactionManagerFactory#getTransactionManager
Field Summary | |
static java.lang.String |
FACTORY_CLASS_4
|
static java.lang.String |
FACTORY_CLASS_5_0
|
static java.lang.String |
FACTORY_CLASS_5_1
|
Constructor Summary | |
WebSphereTransactionManagerFactoryBean()
|
Method Summary | |
java.lang.Object |
getObject()
Return an instance (possibly shared or independent) of the object managed by this factory. |
java.lang.Class |
getObjectType()
Return the type of object that this FactoryBean creates, or null if not known in advance. |
boolean |
isSingleton()
Is the bean managed by this factory a singleton or a prototype? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String FACTORY_CLASS_5_1
public static final java.lang.String FACTORY_CLASS_5_0
public static final java.lang.String FACTORY_CLASS_4
Constructor Detail |
public WebSphereTransactionManagerFactoryBean() throws TransactionSystemException
Method Detail |
public java.lang.Object getObject()
FactoryBean
getObject
in interface FactoryBean
public java.lang.Class getObjectType()
FactoryBean
For a singleton, this can simply return getObject().getClass(), or even null, as autowiring will always check the actual objects for singletons. For prototypes, returning a meaningful type here is highly advisable, as autowiring will simply ignore them else.
getObjectType
in interface FactoryBean
ListableBeanFactory.getBeansOfType(java.lang.Class, boolean, boolean)
public boolean isSingleton()
FactoryBean
The singleton status of the FactoryBean itself will generally be provided by the owning BeanFactory.
isSingleton
in interface FactoryBean
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |