Class StepNameUtils


  • public class StepNameUtils
    extends java.lang.Object
    Helper methods to generate step names.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getStepName​(Step step, org.aspectj.lang.reflect.MethodSignature signature, org.aspectj.lang.JoinPoint joinPoint)
      Generate step name based on a template bypassed in Step annotation.
      static java.lang.String getStepName​(java.lang.String nameTemplate, TemplateConfiguration config, org.aspectj.lang.reflect.MethodSignature signature, org.aspectj.lang.JoinPoint joinPoint)
      Generate step name based on a template and configuration bypassed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getStepName

        @Nonnull
        public static java.lang.String getStepName​(@Nonnull
                                                   Step step,
                                                   @Nonnull
                                                   org.aspectj.lang.reflect.MethodSignature signature,
                                                   @Nonnull
                                                   org.aspectj.lang.JoinPoint joinPoint)
        Generate step name based on a template bypassed in Step annotation.
        Parameters:
        step - annotation
        signature - signature of the method annotated with Step
        joinPoint - intercepted step join point
        Returns:
        step name
      • getStepName

        @Nonnull
        public static java.lang.String getStepName​(@Nonnull
                                                   java.lang.String nameTemplate,
                                                   @Nonnull
                                                   TemplateConfiguration config,
                                                   @Nonnull
                                                   org.aspectj.lang.reflect.MethodSignature signature,
                                                   @Nonnull
                                                   org.aspectj.lang.JoinPoint joinPoint)
        Generate step name based on a template and configuration bypassed.
        Parameters:
        nameTemplate - template string
        config - template configuration to use
        signature - signature of the method related to the step
        joinPoint - intercepted step join point
        Returns:
        step name