public class P6SpyDataSourceDecorator extends Object implements DataSourceDecorator, org.springframework.core.Ordered
Ordered decorator for P6DataSource.| Modifier and Type | Field and Description |
|---|---|
static int |
ORDER
Bean order.
|
| Constructor and Description |
|---|
P6SpyDataSourceDecorator(com.p6spy.engine.spy.JdbcEventListenerFactory jdbcEventListenerFactory) |
| Modifier and Type | Method and Description |
|---|---|
DataSource |
decorate(String beanName,
DataSource dataSource)
Decorates given
DataSource instance. |
int |
getOrder() |
public static final int ORDER
public P6SpyDataSourceDecorator(com.p6spy.engine.spy.JdbcEventListenerFactory jdbcEventListenerFactory)
public DataSource decorate(String beanName, DataSource dataSource)
DataSourceDecoratorDataSource instance. Should either return wrapped
DataSource or same instance.decorate in interface DataSourceDecoratorbeanName - name of a beandataSource - bean instanceDataSource or given DataSource without changes.public int getOrder()
getOrder in interface org.springframework.core.OrderedCopyright © 2023 Pivotal Software, Inc.. All rights reserved.