org.springframework.data.jdbc.config.oracle
Class AqJmsFactoryBeanFactory
java.lang.Object
org.springframework.data.jdbc.config.oracle.AqJmsFactoryBeanFactory
- All Implemented Interfaces:
- FactoryBean<javax.jms.ConnectionFactory>
public class AqJmsFactoryBeanFactory
- extends Object
- implements FactoryBean<javax.jms.ConnectionFactory>
FactoryBean used for the "aq-jms-queue-connection-factory" element of the "orcl" name space
- Since:
- 1.0
- Author:
- Thomas Risberg
Field Summary |
protected static org.apache.commons.logging.Log |
logger
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.apache.commons.logging.Log logger
AqJmsFactoryBeanFactory
public AqJmsFactoryBeanFactory()
setDataSource
public void setDataSource(DataSource dataSource)
setConnectionFactoryType
public void setConnectionFactoryType(AqJmsFactoryBeanFactory.ConnectionFactoryType connectionFactoryType)
setCoordinateWithDataSourceTransactions
public void setCoordinateWithDataSourceTransactions(boolean coordinateWithDataSourceTransactions)
setNativeJdbcExtractor
public void setNativeJdbcExtractor(NativeJdbcExtractor nativeJdbcExtractor)
getObject
public javax.jms.ConnectionFactory getObject()
throws Exception
- Specified by:
getObject
in interface FactoryBean<javax.jms.ConnectionFactory>
- Throws:
Exception
getObjectType
public Class<? extends javax.jms.ConnectionFactory> getObjectType()
- Specified by:
getObjectType
in interface FactoryBean<javax.jms.ConnectionFactory>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface FactoryBean<javax.jms.ConnectionFactory>
getCloseSuppressingConnectionProxy
protected Connection getCloseSuppressingConnectionProxy(Connection target)
- Wrap the given Connection with a proxy that delegates every method call
to it but suppresses close calls.
- Parameters:
target
- the original Connection to wrap
- Returns:
- the wrapped Connection
getCloseDelegatingConnectionProxy
protected Connection getCloseDelegatingConnectionProxy(Connection target,
Connection source)
- Wrap the given Connection with a proxy that delegates every method call
to it and delegates close calls to the source (unwrapped) pooled Connection.
- Parameters:
target
- the original Connection to wrapsource
- the pooled Connection to call close on
- Returns:
- the wrapped Connection