Class AnalyticsAspect

  • All Implemented Interfaces:
    Aspect

    public final class AnalyticsAspect
    extends Object
    implements Aspect
    * Intercepteur de performance des composant.
    Author:
    jmforhan
    • Constructor Detail

      • AnalyticsAspect

        @Inject
        public AnalyticsAspect​(AnalyticsManager analyticsManager)
        Constructor.
        Parameters:
        analyticsManager - the component responsible of managing analytics
    • Method Detail

      • getAnnotationType

        public Class<Analytics> getAnnotationType()
        returns Annotation that tagged any method or class concerned by this aspect
        Specified by:
        getAnnotationType in interface Aspect
        Returns:
        Annotation type.
      • invoke

        public Object invoke​(Object[] args,
                             AspectMethodInvocation invocation)
        Invoke method with this current aspect. Apply aspect then call sub method
        Specified by:
        invoke in interface Aspect
        Parameters:
        args - method arguments
        invocation - method invocation object
        Returns:
        sub-method return