Search in sources :

Example 16 with InterceptorScope

use of com.navercorp.pinpoint.bootstrap.interceptor.scope.InterceptorScope in project pinpoint by naver.

the class ASMMethod method addScopedInterceptor.

@Override
public int addScopedInterceptor(String interceptorClassName, Object[] constructorArgs, String scopeName, ExecutionPolicy executionPolicy) throws InstrumentException {
    Asserts.notNull(interceptorClassName, "interceptorClassName");
    Asserts.notNull(constructorArgs, "constructorArgs");
    Asserts.notNull(scopeName, "scopeName");
    Asserts.notNull(executionPolicy, "executionPolicy");
    final InterceptorScope interceptorScope = this.pluginContext.getInterceptorScope(scopeName);
    return addInterceptor0(interceptorClassName, constructorArgs, interceptorScope, executionPolicy);
}
Also used : InterceptorScope(com.navercorp.pinpoint.bootstrap.interceptor.scope.InterceptorScope)

Example 17 with InterceptorScope

use of com.navercorp.pinpoint.bootstrap.interceptor.scope.InterceptorScope in project pinpoint by naver.

the class ASMClass method addScopedInterceptor.

@Override
public int addScopedInterceptor(MethodFilter filter, String interceptorClassName, Object[] constructorArgs, String scopeName, ExecutionPolicy executionPolicy) throws InstrumentException {
    Asserts.notNull(filter, "filter");
    Asserts.notNull(interceptorClassName, "interceptorClassName");
    Asserts.notNull(constructorArgs, "constructorArgs");
    Asserts.notNull(scopeName, "scopeName");
    Asserts.notNull(executionPolicy, "executionPolicy");
    final InterceptorScope interceptorScope = this.pluginContext.getInterceptorScope(scopeName);
    return addScopedInterceptor0(filter, interceptorClassName, null, interceptorScope, executionPolicy);
}
Also used : InterceptorScope(com.navercorp.pinpoint.bootstrap.interceptor.scope.InterceptorScope)

Example 18 with InterceptorScope

use of com.navercorp.pinpoint.bootstrap.interceptor.scope.InterceptorScope in project pinpoint by naver.

the class ASMClass method addScopedInterceptor.

@Override
public int addScopedInterceptor(String interceptorClassName, Object[] constructorArgs, String scopeName, ExecutionPolicy executionPolicy) throws InstrumentException {
    Asserts.notNull(interceptorClassName, "interceptorClassName");
    Asserts.notNull(constructorArgs, "constructorArgs");
    Asserts.notNull(scopeName, "scopeName");
    Asserts.notNull(executionPolicy, "executionPolicy");
    final InterceptorScope interceptorScope = this.pluginContext.getInterceptorScope(scopeName);
    return addInterceptor0(interceptorClassName, constructorArgs, interceptorScope, executionPolicy);
}
Also used : InterceptorScope(com.navercorp.pinpoint.bootstrap.interceptor.scope.InterceptorScope)

Example 19 with InterceptorScope

use of com.navercorp.pinpoint.bootstrap.interceptor.scope.InterceptorScope in project pinpoint by naver.

the class JavassistClass method addScopedInterceptor.

@Override
public int addScopedInterceptor(String interceptorClassName, String scopeName) throws InstrumentException {
    Asserts.notNull(interceptorClassName, "interceptorClassName");
    Asserts.notNull(scopeName, "scopeName");
    final InterceptorScope interceptorScope = pluginContext.getInterceptorScope(scopeName);
    return addInterceptor0(interceptorClassName, null, interceptorScope, ExecutionPolicy.BOUNDARY);
}
Also used : InterceptorScope(com.navercorp.pinpoint.bootstrap.interceptor.scope.InterceptorScope)

Example 20 with InterceptorScope

use of com.navercorp.pinpoint.bootstrap.interceptor.scope.InterceptorScope in project pinpoint by naver.

the class JavassistClass method addScopedInterceptor.

@Override
public int addScopedInterceptor(String interceptorClassName, String scopeName, ExecutionPolicy executionPolicy) throws InstrumentException {
    Asserts.notNull(interceptorClassName, "interceptorClassName");
    Asserts.notNull(scopeName, "scopeName");
    Asserts.notNull(executionPolicy, "executionPolicy");
    final InterceptorScope interceptorScope = pluginContext.getInterceptorScope(scopeName);
    return addInterceptor0(interceptorClassName, null, interceptorScope, executionPolicy);
}
Also used : InterceptorScope(com.navercorp.pinpoint.bootstrap.interceptor.scope.InterceptorScope)

Aggregations

InterceptorScope (com.navercorp.pinpoint.bootstrap.interceptor.scope.InterceptorScope)24 Scope (com.navercorp.pinpoint.bootstrap.interceptor.annotation.Scope)3 ApiIdAwareAroundInterceptor (com.navercorp.pinpoint.bootstrap.interceptor.ApiIdAwareAroundInterceptor)1 AroundInterceptor (com.navercorp.pinpoint.bootstrap.interceptor.AroundInterceptor)1 ExceptionHandleApiIdAwareAroundInterceptor (com.navercorp.pinpoint.bootstrap.interceptor.ExceptionHandleApiIdAwareAroundInterceptor)1 ExceptionHandleAroundInterceptor (com.navercorp.pinpoint.bootstrap.interceptor.ExceptionHandleAroundInterceptor)1 ExceptionHandleStaticAroundInterceptor (com.navercorp.pinpoint.bootstrap.interceptor.ExceptionHandleStaticAroundInterceptor)1 Interceptor (com.navercorp.pinpoint.bootstrap.interceptor.Interceptor)1 StaticAroundInterceptor (com.navercorp.pinpoint.bootstrap.interceptor.StaticAroundInterceptor)1 ExceptionHandleScopedApiIdAwareAroundInterceptor (com.navercorp.pinpoint.bootstrap.interceptor.scope.ExceptionHandleScopedApiIdAwareAroundInterceptor)1 ExceptionHandleScopedInterceptor (com.navercorp.pinpoint.bootstrap.interceptor.scope.ExceptionHandleScopedInterceptor)1 ExceptionHandleScopedStaticAroundInterceptor (com.navercorp.pinpoint.bootstrap.interceptor.scope.ExceptionHandleScopedStaticAroundInterceptor)1 ScopedApiIdAwareAroundInterceptor (com.navercorp.pinpoint.bootstrap.interceptor.scope.ScopedApiIdAwareAroundInterceptor)1 ScopedInterceptor (com.navercorp.pinpoint.bootstrap.interceptor.scope.ScopedInterceptor)1 ScopedStaticAroundInterceptor (com.navercorp.pinpoint.bootstrap.interceptor.scope.ScopedStaticAroundInterceptor)1 ObjectFactory (com.navercorp.pinpoint.bootstrap.plugin.ObjectFactory)1 AutoBindingObjectFactory (com.navercorp.pinpoint.profiler.objectfactory.AutoBindingObjectFactory)1 InterceptorArgumentProvider (com.navercorp.pinpoint.profiler.objectfactory.InterceptorArgumentProvider)1 Test (org.junit.Test)1