类 InstantiationModelAwarePointcutAdvisorImpl.PerTargetInstantiationModelPointcut

java.lang.Object
infra.aop.support.DynamicMethodMatcher
infra.aop.support.DynamicMethodMatcherPointcut
infra.aop.aspectj.annotation.InstantiationModelAwarePointcutAdvisorImpl.PerTargetInstantiationModelPointcut
所有已实现的接口:
MethodMatcher, Pointcut
封闭类:
InstantiationModelAwarePointcutAdvisorImpl

private static final class InstantiationModelAwarePointcutAdvisorImpl.PerTargetInstantiationModelPointcut extends DynamicMethodMatcherPointcut
Pointcut implementation that changes its behaviour when the advice is instantiated. Note that this is a dynamic pointcut; otherwise it might be optimized out if it does not at first match statically.
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • matches

      public boolean matches(Method method, Class<?> targetClass)
      从类复制的说明: DynamicMethodMatcher
      Can override to add preconditions for dynamic matching. This implementation always returns true.
      指定者:
      matches 在接口中 MethodMatcher
      覆盖:
      matches 在类中 DynamicMethodMatcher
      参数:
      method - the candidate method
      targetClass - the target class
      返回:
      whether or not this method matches on application startup.
    • matches

      public boolean matches(MethodInvocation invocation)
      从接口复制的说明: MethodMatcher
      Check whether there a runtime (dynamic) match for this method, which must have matched statically.

      This method is invoked only if the 2-arg matches method returns true for the given method and target class, and if the MethodMatcher.isRuntime() method returns true. Invoked immediately before potential running of the advice, after any advice earlier in the advice chain has run.

      参数:
      invocation - runtime invocation contains the candidate method and target class, arguments to the method
      返回:
      whether there's a runtime match
      另请参阅:
    • isAspectMaterialized

      private boolean isAspectMaterialized()
    • equals

      public boolean equals(@Nullable Object other)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object