Example usage for org.aspectj.lang JoinPoint METHOD_EXECUTION

List of usage examples for org.aspectj.lang JoinPoint METHOD_EXECUTION

Introduction

In this page you can find the example usage for org.aspectj.lang JoinPoint METHOD_EXECUTION.

Prototype

String METHOD_EXECUTION

To view the source code for org.aspectj.lang JoinPoint METHOD_EXECUTION.

Click Source Link

Document

The legal return values from getKind()

Usage

From source file:com.github.drinkjava2.jbeanbox.AspectjJoinPoint.java

License:Apache License

@Override
public String getKind() {
    return JoinPoint.METHOD_EXECUTION;
}

From source file:org.failearly.ajunit.AjUnitAspectTest.java

License:Open Source License

private static JoinPoint.StaticPart joinpoint() throws NoSuchMethodException {
    final JoinPoint.StaticPart joinPointStaticPart = Mockito.mock(JoinPoint.StaticPart.class);
    Mockito.when(joinPointStaticPart.getKind()).thenReturn(JoinPoint.METHOD_EXECUTION);
    final MethodSignature methodSignature = getMethodSignature();
    Mockito.when(joinPointStaticPart.getSignature()).thenReturn(methodSignature);
    return joinPointStaticPart;
}