Class AbstractControllerInstrumentation
java.lang.Object
org.apache.skywalking.apm.agent.core.plugin.AbstractClassEnhancePluginDefine
org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.ClassEnhancePluginDefine
org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.ClassInstanceMethodsEnhancePluginDefine
org.apache.skywalking.apm.plugin.spring.mvc.v6.define.AbstractSpring6Instrumentation
org.apache.skywalking.apm.plugin.spring.mvc.v6.define.AbstractControllerInstrumentation
- Direct Known Subclasses:
ControllerInstrumentation,RestControllerInstrumentation
ControllerInstrumentation enhance all constructor and method annotated with
org.springframework.web.bind.annotation.RequestMapping that class has
org.springframework.stereotype.Controller annotation.
ControllerConstructorInterceptor set the controller base path to
dynamic field before execute constructor.
org.apache.skywalking.apm.plugin.spring.mvc.commons.interceptor.RequestMappingMethodInterceptor get the request path
from dynamic field first, if not found, RequestMappingMethodInterceptor generate request path that
combine the path value of current annotation on current method and the base path and set the new path to the dynamic
filed-
Field Summary
Fields inherited from class org.apache.skywalking.apm.plugin.spring.mvc.v6.define.AbstractSpring6Instrumentation
WITNESS_CLASSESFields inherited from class org.apache.skywalking.apm.agent.core.plugin.AbstractClassEnhancePluginDefine
CONTEXT_ATTR_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.skywalking.apm.agent.core.plugin.match.ClassMatchorg.apache.skywalking.apm.agent.core.plugin.interceptor.ConstructorInterceptPoint[]protected abstract String[]org.apache.skywalking.apm.agent.core.plugin.interceptor.InstanceMethodsInterceptPoint[]Methods inherited from class org.apache.skywalking.apm.plugin.spring.mvc.v6.define.AbstractSpring6Instrumentation
witnessClassesMethods inherited from class org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.ClassInstanceMethodsEnhancePluginDefine
getStaticMethodsInterceptPointsMethods inherited from class org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.ClassEnhancePluginDefine
enhanceClass, enhanceInstance, getInstanceMethodsInterceptV2Points, getStaticMethodsInterceptV2PointsMethods inherited from class org.apache.skywalking.apm.agent.core.plugin.AbstractClassEnhancePluginDefine
define, enhance, getPluginName, isBootstrapInstrumentation, setPluginName, witnessMethods
-
Constructor Details
-
AbstractControllerInstrumentation
public AbstractControllerInstrumentation()
-
-
Method Details
-
getConstructorsInterceptPoints
public org.apache.skywalking.apm.agent.core.plugin.interceptor.ConstructorInterceptPoint[] getConstructorsInterceptPoints()- Specified by:
getConstructorsInterceptPointsin classorg.apache.skywalking.apm.agent.core.plugin.AbstractClassEnhancePluginDefine
-
getInstanceMethodsInterceptPoints
public org.apache.skywalking.apm.agent.core.plugin.interceptor.InstanceMethodsInterceptPoint[] getInstanceMethodsInterceptPoints()- Specified by:
getInstanceMethodsInterceptPointsin classorg.apache.skywalking.apm.agent.core.plugin.AbstractClassEnhancePluginDefine
-
enhanceClass
protected org.apache.skywalking.apm.agent.core.plugin.match.ClassMatch enhanceClass()- Specified by:
enhanceClassin classorg.apache.skywalking.apm.agent.core.plugin.AbstractClassEnhancePluginDefine
-
getEnhanceAnnotations
-