public class CacheableMethodContainerFactory extends DefaultMethodContainerFactory
The extension implementation of DefaultMethodContainerFactory.
On the basis of the former, if ContainerCache annotation exists on the method,
the obtained method container will be wrapped as CacheableContainer.
ContainerCache,
CacheableContainer| 限定符和类型 | 字段和说明 |
|---|---|
static int |
ORDER |
annotationFinder, methodInvokerContainerCreator| 构造器和说明 |
|---|
CacheableMethodContainerFactory(MethodInvokerContainerCreator methodInvokerContainerCreator,
AnnotationFinder annotationFinder,
CacheManager cacheManager) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<Container<Object>> |
get(Object source,
Method method,
Collection<ContainerMethod> annotations)
Adapt methods to data source containers.
|
int |
getSort()
Gets the sorting value.
|
boolean |
support(Object source,
Method method,
Collection<ContainerMethod> annotations)
Whether the method is supported.
|
public static final int ORDER
public CacheableMethodContainerFactory(MethodInvokerContainerCreator methodInvokerContainerCreator, AnnotationFinder annotationFinder, CacheManager cacheManager)
public int getSort()
Gets the sorting value.
The smaller the value, the higher the priority of the object.
getSort 在接口中 SortedgetSort 在类中 DefaultMethodContainerFactorypublic boolean support(Object source, Method method, Collection<ContainerMethod> annotations)
support 在接口中 MethodContainerFactorysupport 在类中 DefaultMethodContainerFactorysource - method's calling objectmethod - methodannotations - annotationspublic List<Container<Object>> get(Object source, Method method, Collection<ContainerMethod> annotations)
get 在接口中 MethodContainerFactoryget 在类中 DefaultMethodContainerFactorysource - method's calling objectmethod - methodannotations - annotationsCopyright © 2023. All rights reserved.