Example usage for org.springframework.aop.interceptor PerformanceMonitorInterceptor setPrefix

List of usage examples for org.springframework.aop.interceptor PerformanceMonitorInterceptor setPrefix

Introduction

In this page you can find the example usage for org.springframework.aop.interceptor PerformanceMonitorInterceptor setPrefix.

Prototype

public void setPrefix(@Nullable String prefix) 

Source Link

Document

Set the text that will get appended to the trace data.

Usage

From source file:org.springframework.aop.interceptor.PerformanceMonitorInterceptorTests.java

@Test
public void testSuffixAndPrefixAssignment() {
    PerformanceMonitorInterceptor interceptor = new PerformanceMonitorInterceptor();

    assertNotNull(interceptor.getPrefix());
    assertNotNull(interceptor.getSuffix());

    interceptor.setPrefix(null);
    interceptor.setSuffix(null);/*from ww w.  j  a  va  2 s  .  c  om*/

    assertNotNull(interceptor.getPrefix());
    assertNotNull(interceptor.getSuffix());
}