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
Ordered decorator for P6DataSource.- Author:
- Arthur Gavlyukovskiy
-
Field Summary
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionP6SpyDataSourceDecorator(com.p6spy.engine.spy.JdbcEventListenerFactory jdbcEventListenerFactory) -
Method Summary
Modifier and TypeMethodDescriptiondecorate(String beanName, DataSource dataSource) Decorates givenDataSourceinstance.intgetOrder()
-
Field Details
-
ORDER
public static final int ORDERBean order.- See Also:
-
-
Constructor Details
-
P6SpyDataSourceDecorator
public P6SpyDataSourceDecorator(com.p6spy.engine.spy.JdbcEventListenerFactory jdbcEventListenerFactory)
-
-
Method Details
-
decorate
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
-