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

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

Introduction

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

Prototype

public void setSuffix(@Nullable String suffix) 

Source Link

Document

Set the text that will get prepended 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);//from w  ww  .  j  a  va2 s .c  o  m
    interceptor.setSuffix(null);

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