Skip to content

Commit

Permalink
[pinpoint-apm#2862] Remove code using annotation logic in jetty, tomc…
Browse files Browse the repository at this point in the history
…at plugin
  • Loading branch information
minwoo-jung committed Apr 27, 2017
1 parent e265fa5 commit 0693201
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
/**
* @author Taejin Koo
*/
@TargetMethod(name = "handle", paramTypes = { "org.eclipse.jetty.server.AbstractHttpConnection" })
public class Jetty8ServerHandleInterceptor extends AbstractServerHandleInterceptor {

private volatile Method getRequestMethod;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
/**
* @author Taejin Koo
*/
@TargetMethod(name = "handle", paramTypes = { "org.eclipse.jetty.server.HttpChannel" })
public class ServerHandleInterceptor extends AbstractServerHandleInterceptor {

public ServerHandleInterceptor(TraceContext traceContext, MethodDescriptor descriptor, Filter<String> excludeFilter) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public byte[] doInTransform(Instrumentor instrumentor, ClassLoader classLoader,
// Tomcat 7
InstrumentMethod initInternalEditor = target.getDeclaredMethod("initInternal");
if (initInternalEditor != null) {
initInternalEditor.addInterceptor("com.navercorp.pinpoint.plugin.tomcat.interceptor.ConnectorInitializeInterceptor");
initInternalEditor.addScopedInterceptor("com.navercorp.pinpoint.plugin.tomcat.interceptor.ConnectorInitializeInterceptor", TomcatConstants.TOMCAT_SERVLET_ASYNC_SCOPE);
}

return target.toBytecode();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
* @author jaehong.kim
*
*/
@Scope(TomcatConstants.TOMCAT_SERVLET_ASYNC_SCOPE)
public class AsyncContextImplDispatchMethodInterceptor extends SpanAsyncEventSimpleAroundInterceptor {

public AsyncContextImplDispatchMethodInterceptor(TraceContext traceContext, MethodDescriptor methodDescriptor) {
Expand Down

0 comments on commit 0693201

Please sign in to comment.