public interface CacheAnnotationParserAnnotationCacheOperationSource は、Spring 独自の Cacheable、CachePut、CacheEvict などの特定のアノテーション型をサポートするためにそのようなパーサーに委譲します。| 修飾子と型 | メソッドと説明 |
|---|---|
CollectionSE<CacheOperation> | parseCacheAnnotations(ClassSE<?> type) 既知のアノテーション型に基づいて、指定されたクラスのキャッシュ定義を解析します。 |
CollectionSE<CacheOperation> | parseCacheAnnotations(MethodSE method) 既知のアノテーション型に基づいて、指定されたメソッドのキャッシュ定義を解析します。 |
@Nullable CollectionSE<CacheOperation> parseCacheAnnotations(ClassSE<?> type)
これは基本的に、既知のキャッシュアノテーションを Spring のメタデータ属性クラスに解析します。クラスがキャッシュ可能でない場合は null を返します。
type - アノテーション付きクラス null AnnotationCacheOperationSource.findCacheOperations(Class)@Nullable CollectionSE<CacheOperation> parseCacheAnnotations(MethodSE method)
これは基本的に、既知のキャッシュアノテーションを Spring のメタデータ属性クラスに解析します。メソッドがキャッシュ可能でない場合、null を返します。
method - アノテーション付きメソッド null AnnotationCacheOperationSource.findCacheOperations(Method)