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.
NOTE: Not recommended to use with DefaultMethodContainerFactory,
in actual use, only one of them is needed to be configured.
ContainerCache,
CacheableContainerannotationFinder, methodInvokerContainerCreatorDEFAULT_METHOD_CONTAINER_FACTORY_ORDER| 构造器和说明 |
|---|
CacheableMethodContainerFactory(MethodInvokerContainerCreator methodInvokerContainerCreator,
AnnotationFinder annotationFinder,
Crane4jGlobalConfiguration configuration) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<Container<Object>> |
get(@Nullable Object source,
Method method,
Collection<ContainerMethod> annotations)
Adapt methods to data source containers.
|
getSort, supportpublic CacheableMethodContainerFactory(MethodInvokerContainerCreator methodInvokerContainerCreator, AnnotationFinder annotationFinder, Crane4jGlobalConfiguration configuration)
public List<Container<Object>> get(@Nullable Object source, Method method, Collection<ContainerMethod> annotations)
get 在接口中 MethodContainerFactoryget 在类中 DefaultMethodContainerFactorysource - method's calling objectmethod - methodannotations - annotationsCopyright © 2024. All rights reserved.