## 类的使用
org.springframework.context.annotation.Role

- 使用Role的程序包
  程序包 | 说明
  --- | ---
  org.springframework.cache.annotation | Annotations and supporting classes for declarative cache management.
  org.springframework.context.annotation | Annotation support for the Application Context, including JSR-250 "common" annotations, component-scanning, and Java-based metadata for creating Spring-managed objects.
  org.springframework.scheduling.annotation | Java 5 annotation for asynchronous method execution.

- - ### org.springframework.cache.annotation中Role的使用

    注释类型为Role的org.springframework.cache.annotation中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `ProxyCachingConfiguration` `@Configuration` class that registers the Spring infrastructure beans necessary to enable proxy-based annotation-driven cache management.

    注释类型为Role的org.springframework.cache.annotation中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `BeanFactoryCacheOperationSourceAdvisor` | ProxyCachingConfiguration.`cacheAdvisor()`
    `CacheInterceptor` | ProxyCachingConfiguration.`cacheInterceptor()`
    `CacheOperationSource` | ProxyCachingConfiguration.`cacheOperationSource()`

  - ### org.springframework.context.annotation中Role的使用

    注释类型为Role的org.springframework.context.annotation中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `LoadTimeWeaver` | LoadTimeWeavingConfiguration.`loadTimeWeaver()`
    `AnnotationMBeanExporter` | MBeanExportConfiguration.`mbeanExporter()`

  - ### org.springframework.scheduling.annotation中Role的使用

    注释类型为Role的org.springframework.scheduling.annotation中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `ProxyAsyncConfiguration` `@Configuration` class that registers the Spring infrastructure beans necessary to enable proxy-based asynchronous method execution.
    `class` | `SchedulingConfiguration` `@Configuration` class that registers a `ScheduledAnnotationBeanPostProcessor` bean capable of processing Spring's @`Scheduled` annotation.

    注释类型为Role的org.springframework.scheduling.annotation中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `AsyncAnnotationBeanPostProcessor` | ProxyAsyncConfiguration.`asyncAdvisor()`
    `ScheduledAnnotationBeanPostProcessor` | SchedulingConfiguration.`scheduledAnnotationProcessor()`