org.springframework.aop.interceptor

Class AbstractMonitoringInterceptor

    • Constructor Detail

      • AbstractMonitoringInterceptor

        public AbstractMonitoringInterceptor()
    • Method Detail

      • setPrefix

        public void setPrefix(@Nullable
                              java.lang.String prefix)
        Set the text that will get appended to the trace data.

        Default is none.

      • getPrefix

        protected java.lang.String getPrefix()
        Return the text that will get appended to the trace data.
      • setSuffix

        public void setSuffix(@Nullable
                              java.lang.String suffix)
        Set the text that will get prepended to the trace data.

        Default is none.

      • getSuffix

        protected java.lang.String getSuffix()
        Return the text that will get prepended to the trace data.
      • setLogTargetClassInvocation

        public void setLogTargetClassInvocation(boolean logTargetClassInvocation)
        Set whether to log the invocation on the target class, if applicable (i.e. if the method is actually delegated to the target class).

        Default is "false", logging the invocation based on the proxy interface/class name.

      • createInvocationTraceName

        protected java.lang.String createInvocationTraceName(MethodInvocation invocation)
        Create a String name for the given MethodInvocation that can be used for trace/logging purposes. This name is made up of the configured prefix, followed by the fully-qualified name of the method being invoked, followed by the configured suffix.
        See Also:
        setPrefix(java.lang.String), setSuffix(java.lang.String)