public class PoolingDataSourceBean extends PoolingDataSource implements BeanNameAware, InitializingBean
PoolingDataSource
. Provides sensible defaults and
also supports direct wrapping of a XADataSource
instance.Modifier and Type | Class and Description |
---|---|
static class |
PoolingDataSourceBean.DirectXADataSource
|
Constructor and Description |
---|
PoolingDataSourceBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
XAStatefulHolder |
createPooledConnection(Object xaFactory,
ResourceBean bean) |
protected XADataSource |
getDataSource() |
void |
init() |
void |
setBeanName(String name) |
void |
setDataSource(XADataSource dataSource)
Set the
XADataSource directly, instead of calling
#setClassName(String) . |
public void init()
public void setBeanName(String name)
setBeanName
in interface BeanNameAware
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public void setDataSource(XADataSource dataSource)
XADataSource
directly, instead of calling
#setClassName(String)
.dataSource
- the data source to useprotected final XADataSource getDataSource()
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.