org.springframework.aop.support

## 类 NameMatchMethodPointcutAdvisor

- java.lang.Object
- - org.springframework.aop.support.AbstractPointcutAdvisor
  - - org.springframework.aop.support.AbstractGenericPointcutAdvisor
    - - org.springframework.aop.support.NameMatchMethodPointcutAdvisor

- 所有已实现的接口:
    Serializable, Advisor, PointcutAdvisor, org.springframework.core.Ordered

      public class NameMatchMethodPointcutAdvisor
      extends AbstractGenericPointcutAdvisor

  Convenient class for name-match method pointcuts that hold an Advice, making them an Advisor.
  作者:
    Juergen Hoeller, Rob Harrop
  另请参阅:
    `NameMatchMethodPointcut`, 序列化表格

- - ### 字段概要

    - ### 从接口继承的字段 org.springframework.aop.Advisor

      `EMPTY_ADVICE`

    - ### 从接口继承的字段 org.springframework.core.Ordered

      `HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE`

  - ### 构造器概要

    构造器
    构造器和说明
    `NameMatchMethodPointcutAdvisor()`
    `NameMatchMethodPointcutAdvisor(Advice advice)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `NameMatchMethodPointcut` | `addMethodName(String name)` Add another eligible method name, in addition to those already named.
    `Pointcut` | `getPointcut()` Get the Pointcut that drives this advisor.
    `void` | `setClassFilter(ClassFilter classFilter)` Set the `ClassFilter` to use for this pointcut.
    `void` | `setMappedName(String mappedName)` Convenience method when we have only a single method name to match.
    `void` | `setMappedNames(String... mappedNames)` Set the method names defining methods to match.

    - ### 从类继承的方法 org.springframework.aop.support.AbstractGenericPointcutAdvisor

      `getAdvice, setAdvice, toString`

    - ### 从类继承的方法 org.springframework.aop.support.AbstractPointcutAdvisor

      `equals, getOrder, hashCode, isPerInstance, setOrder`

    - ### 从类继承的方法 java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### NameMatchMethodPointcutAdvisor

          public NameMatchMethodPointcutAdvisor()

    - #### NameMatchMethodPointcutAdvisor

          public NameMatchMethodPointcutAdvisor(Advice advice)

  - ### 方法详细资料

    - #### setClassFilter

          public void setClassFilter(ClassFilter classFilter)

      Set the `ClassFilter` to use for this pointcut. Default is `ClassFilter.TRUE`.
      另请参阅:
        `StaticMethodMatcherPointcut.setClassFilter(org.springframework.aop.ClassFilter)`

    - #### setMappedName

          public void setMappedName(String mappedName)

      Convenience method when we have only a single method name to match. Use either this method or `setMappedNames`, not both.
      另请参阅:
        `setMappedNames(java.lang.String...)`, `NameMatchMethodPointcut.setMappedName(java.lang.String)`

    - #### setMappedNames

          public void setMappedNames(String... mappedNames)

      Set the method names defining methods to match. Matching will be the union of all these; if any match, the pointcut matches.
      另请参阅:
        `NameMatchMethodPointcut.setMappedNames(java.lang.String...)`

    - #### addMethodName

          public NameMatchMethodPointcut addMethodName(String name)

      Add another eligible method name, in addition to those already named. Like the set methods, this method is for use when configuring proxies, before a proxy is used.
      参数:
        `name` - name of the additional method that will match
      返回:
        this pointcut to allow for multiple additions in one line
      另请参阅:
        `NameMatchMethodPointcut.addMethodName(java.lang.String)`

    - #### getPointcut

          public Pointcut getPointcut()

      从接口复制的说明: `PointcutAdvisor`
      Get the Pointcut that drives this advisor.