@ContainerMethod(resultType=java.lang.Object.class) @Documented @Target(value={ANNOTATION_TYPE,METHOD,TYPE}) @Retention(value=RUNTIME) public @interface CacheContainerMethod
CacheContainerMethod and ContainerMethod.ContainerCache,
ContainerMethod| 限定符和类型 | 必需的元素和说明 |
|---|---|
Class<?> |
resultType
Data source object type returned by method.
|
| 限定符和类型 | 可选元素和说明 |
|---|---|
Bind |
bind
When annotations are used on a class,
they are used to bind the corresponding methods in the class.
|
String |
cacheName
The cache name, when empty, defaults to
ContainerMethod.namespace() of the marked method. |
String |
namespace
Namespace of the data source container, use method name when empty.
|
String |
resultKey
The key field of the data source object returned by the method.
|
MappingType |
type
The mapping relationship between the object returned by the method and the target object.
|
public abstract Class<?> resultType
ContainerMethod.resultType()public abstract String cacheName
ContainerMethod.namespace() of the marked method.ContainerCache.cacheName()public abstract String namespace
ContainerMethod.namespace()public abstract MappingType type
ContainerMethod.type()public abstract String resultKey
ContainerMethod.resultKey()public abstract Bind bind
ContainerMethod.bind()Copyright © 2023. All rights reserved.