Example usage for org.springframework.aop.support RegexpMethodPointcutAdvisor RegexpMethodPointcutAdvisor

List of usage examples for org.springframework.aop.support RegexpMethodPointcutAdvisor RegexpMethodPointcutAdvisor

Introduction

In this page you can find the example usage for org.springframework.aop.support RegexpMethodPointcutAdvisor RegexpMethodPointcutAdvisor.

Prototype

public RegexpMethodPointcutAdvisor(String[] patterns, Advice advice) 

Source Link

Document

Create a RegexpMethodPointcutAdvisor for the given advice.

Usage

From source file:im.tym.wraop.both.SpringAOPWrapperFactorySpiTest.java

@Test
public void testAdvisor() {
    Assert.assertTrue(factory.addAspect(new RegexpMethodPointcutAdvisor(".*", new TrimTransformerAdvice())));
    Transformer<Object, String> transformer = factory.wrap(new ToStringTransformer(),
            this.getClass().getClassLoader());
    Assert.assertEquals("test", transformer.transform(" test "));
}