Example usage for org.aspectj.lang Signature toShortString

List of usage examples for org.aspectj.lang Signature toShortString

Introduction

In this page you can find the example usage for org.aspectj.lang Signature toShortString.

Prototype

String toShortString();

Source Link

Usage

From source file:ajia.tracing.AbstractTraceAspect.java

License:Apache License

@Before("traced()")
public void log(JoinPoint thisJoinPointStaticPart) {
    Signature sig = thisJoinPointStaticPart.getSignature();
    _logger.log(Level.INFO, "Entering [" + sig.toShortString() + "]");
    NDC.push(" ");
}

From source file:com.devexperts.chameleon.aspect.TimingAspect.java

License:Open Source License

@Around("serviceMethods()")
public Object profile(ProceedingJoinPoint pjp) throws Throwable {

    Signature signature = pjp.getSignature();
    String name = signature.toShortString();

    long start = System.currentTimeMillis();
    Object output = pjp.proceed();
    long elapsedTime = System.currentTimeMillis() - start;
    if (elapsedTime > timingMoreThen)
        logger.info("{} execution time: " + elapsedTime + " milliseconds.", name);
    return output;
}

From source file:com.github.woozoo73.ht.SignatureInfo.java

License:Apache License

public SignatureInfo(Signature signature) {
    if (signature == null) {
        return;/*from   w  ww  .  j a v a 2s  .c  o m*/
    }

    this.shortString = signature.toShortString();
    this.longString = signature.toLongString();
    this.name = signature.getName();
    this.modifiers = signature.getModifiers();
    this.declaringType = signature.getDeclaringType();
    this.declaringTypeName = signature.getDeclaringTypeName();
}

From source file:com.tuanche.log.aspect.AbstractBaseAspect.java

License:Open Source License

protected String getMethodName(JoinPoint joinPoint) {
    Signature signature = joinPoint.getSignature();
    String methodStatement = signature.toShortString();
    return methodStatement;
}