public class CompositeCacheOperationSource extends ObjectSE implements CacheOperationSource, SerializableSE
CacheOperationSource インスタンスの指定された配列を反復処理する複合 CacheOperationSource 実装。| コンストラクターと説明 |
|---|
CompositeCacheOperationSource(CacheOperationSource... cacheOperationSources) 指定されたソースの新しい CompositeCacheOperationSource を作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
CollectionSE<CacheOperation> | getCacheOperations(MethodSE method, ClassSE<?> targetClass) このメソッドのキャッシュ操作のコレクションを返します。メソッドにキャッシュ可能なアノテーションが含まれていない場合は null を返します。 |
CacheOperationSource[] | getCacheOperationSources() この CompositeCacheOperationSource が結合する CacheOperationSource インスタンスを返します。 |
boolean | isCandidateClass(ClassSE<?> targetClass) 指定されたクラスが、この CacheOperationSource のメタデータ形式のキャッシュ操作の候補であるかどうかを判断します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic CompositeCacheOperationSource(CacheOperationSource... cacheOperationSources)
cacheOperationSources - 組み合わせる CacheOperationSource インスタンス public final CacheOperationSource[] getCacheOperationSources()
CompositeCacheOperationSource が結合する CacheOperationSource インスタンスを返します。public boolean isCandidateClass(ClassSE<?> targetClass)
CacheOperationSourceCacheOperationSource のメタデータ形式のキャッシュ操作の候補であるかどうかを判断します。 このメソッドが false を返す場合、指定されたクラスのメソッドは CacheOperationSource.getCacheOperations(java.lang.reflect.Method, java.lang.Class<?>) イントロスペクションのために走査されません。false を返すことは、影響を受けないクラスの最適化です。一方、true は、クラスが特定のクラスの各メソッドに対して個別に完全にイントロスペクションする必要があることを意味します。
CacheOperationSource の isCandidateClass targetClass - イントロスペクトするクラス false (クラスがクラスまたはメソッドレベルでキャッシュ操作メタデータを持たないことがわかっている場合)。それ以外の場合は true。デフォルトの実装は true を返し、通常のイントロスペクションが行われます。@Nullable public CollectionSE<CacheOperation> getCacheOperations(MethodSE method, @Nullable ClassSE<?> targetClass)
CacheOperationSourcenull を返します。CacheOperationSource の getCacheOperations method - イントロスペクトする方法 targetClass - ターゲットクラス (null の場合があります。この場合、メソッドの宣言クラスを使用する必要があります)null