Class P6SpyDataSourceDecorator
- java.lang.Object
-
- org.springframework.cloud.sleuth.instrument.jdbc.P6SpyDataSourceDecorator
-
- All Implemented Interfaces:
DataSourceDecorator,org.springframework.core.Ordered
public class P6SpyDataSourceDecorator extends Object implements DataSourceDecorator, org.springframework.core.Ordered
Ordereddecorator forP6DataSource.- Author:
- Arthur Gavlyukovskiy
-
-
Field Summary
Fields Modifier and Type Field Description static intORDERBean order.
-
Constructor Summary
Constructors Constructor Description P6SpyDataSourceDecorator(com.p6spy.engine.spy.JdbcEventListenerFactory jdbcEventListenerFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataSourcedecorate(String beanName, DataSource dataSource)Decorates givenDataSourceinstance.intgetOrder()
-
-
-
Field Detail
-
ORDER
public static final int ORDER
Bean order.- See Also:
- Constant Field Values
-
-
Method Detail
-
decorate
public DataSource decorate(String beanName, DataSource dataSource)
Description copied from interface:DataSourceDecoratorDecorates givenDataSourceinstance. Should either return wrappedDataSourceor same instance.- Specified by:
decoratein interfaceDataSourceDecorator- Parameters:
beanName- name of a beandataSource- bean instance- Returns:
- decorated
DataSourceor givenDataSourcewithout changes.
-
getOrder
public int getOrder()
- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
-