public class MethodInvokerContainerCreator extends Object
MethodInvokerContainer creation.ParameterConvertibleMethodInvoker,
ReflectiveMethodInvoker| 限定符和类型 | 类和说明 |
|---|---|
static class |
MethodInvokerContainerCreator.MethodInvokerContainerCreation |
| 限定符和类型 | 字段和说明 |
|---|---|
protected ConverterManager |
converterManager |
protected PropertyOperator |
propertyOperator |
| 构造器和说明 |
|---|
MethodInvokerContainerCreator() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected @NonNull MethodInvoker |
adaptMethodToInvoker(Object target,
Method method)
Get the namespace of method container.
|
MethodInvokerContainer |
createContainer(MethodInvokerContainerCreator.MethodInvokerContainerCreation containerCreation) |
protected MethodInvokerContainer |
doCreateNoMappingContainer(@Nullable Object target,
MethodInvoker methodInvoker,
@Nullable Method method,
String namespace) |
protected MethodInvokerContainer |
doCreateOneToManyContainer(@Nullable Object target,
MethodInvoker methodInvoker,
@Nullable Method method,
String namespace,
Class<?> resultType,
String resultKey,
DuplicateStrategy duplicateStrategy) |
protected MethodInvokerContainer |
doCreateOneToOneContainer(@Nullable Object target,
MethodInvoker methodInvoker,
@Nullable Method method,
String namespace,
Class<?> resultType,
String resultKey,
DuplicateStrategy duplicateStrategy) |
protected MethodInvokerContainer |
doCreateOrderOfKeysContainer(@Nullable Object target,
MethodInvoker methodInvoker,
@Nullable Method method,
String namespace) |
protected MethodInvokerContainer |
doCreateSingleKeyContainer(@Nullable Object target,
MethodInvoker methodInvoker,
String namespace) |
protected MethodInvoker |
findKeyGetter(Class<?> resultType,
String resultKey)
Find key getter method of result object.
|
protected MethodInvokerContainer.KeyExtractor |
getKeyExtractor(Class<?> resultType,
String resultKey)
Get key extractor of result object if necessary.
|
protected static @NonNull String |
getNamespace(@Nullable Method method,
String namespace)
Get the namespace from method.
|
protected final PropertyOperator propertyOperator
protected final ConverterManager converterManager
public MethodInvokerContainer createContainer(MethodInvokerContainerCreator.MethodInvokerContainerCreation containerCreation)
protected MethodInvokerContainer doCreateSingleKeyContainer(@Nullable Object target, MethodInvoker methodInvoker, String namespace)
protected MethodInvokerContainer doCreateNoMappingContainer(@Nullable Object target, MethodInvoker methodInvoker, @Nullable Method method, String namespace)
protected MethodInvokerContainer doCreateOrderOfKeysContainer(@Nullable Object target, MethodInvoker methodInvoker, @Nullable Method method, String namespace)
protected MethodInvokerContainer doCreateOneToOneContainer(@Nullable Object target, MethodInvoker methodInvoker, @Nullable Method method, String namespace, Class<?> resultType, String resultKey, DuplicateStrategy duplicateStrategy)
protected MethodInvokerContainer doCreateOneToManyContainer(@Nullable Object target, MethodInvoker methodInvoker, @Nullable Method method, String namespace, Class<?> resultType, String resultKey, DuplicateStrategy duplicateStrategy)
protected @NonNull MethodInvoker adaptMethodToInvoker(Object target, Method method)
target - target, if the method is static, it can be nullmethod - methodprotected MethodInvokerContainer.KeyExtractor getKeyExtractor(Class<?> resultType, String resultKey)
resultType - result typeresultKey - result keyprotected static @NonNull String getNamespace(@Nullable Method method, String namespace)
method - methodnamespace - namespaceprotected MethodInvoker findKeyGetter(Class<?> resultType, String resultKey)
resultType - result typeresultKey - result keyCopyright © 2024. All rights reserved.