类 ControllerConstructorInterceptor
java.lang.Object
org.apache.skywalking.apm.plugin.spring.mvc.v4.ControllerConstructorInterceptor
- 所有已实现的接口:
org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceConstructorInterceptor
public class ControllerConstructorInterceptor
extends Object
implements org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceConstructorInterceptor
The
ControllerConstructorInterceptor intercepts the Controller's constructor, in order to acquire the
mapping annotation, if exist.
But, you can see we only use the first mapping value, Why?
Right now, we intercept the controller by annotation as you known, so we CAN'T know which uri patten is actually matched. Even we know, that costs a lot.
If we want to resolve that, we must intercept the Spring MVC core codes, that is not a good choice for now.
Comment by @wu-sheng
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidonConstruct(org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance objInst, Object[] allArguments)
-
构造器详细资料
-
ControllerConstructorInterceptor
public ControllerConstructorInterceptor()
-
-
方法详细资料
-
onConstruct
public void onConstruct(org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance objInst, Object[] allArguments) - 指定者:
onConstruct在接口中org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceConstructorInterceptor
-