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

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

Introduction

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

Prototype

protected String getPrefix() 

Source Link

Document

Return 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);/*from   w  w w  .j a  v  a  2 s  . com*/
    interceptor.setSuffix(null);

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