public class Crane4jTemplate extends Object
| 限定符和类型 | 类和说明 |
|---|---|
class |
Crane4jTemplate.OpsForComponent
Operations for components.
|
class |
Crane4jTemplate.OpsForContainer
Operations for datasource containers.
|
class |
Crane4jTemplate.OpsForProxy
Operations for proxies.
|
| 构造器和说明 |
|---|
Crane4jTemplate() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
execute(Collection<?> targets)
Execute the fill operation.
|
void |
execute(Collection<?> targets,
BeanOperationExecutor executor)
Execute the fill operation.
|
void |
execute(Collection<?> targets,
BeanOperationExecutor executor,
Predicate<? super KeyTriggerOperation> filter)
Execute the fill operation.
|
void |
execute(Collection<?> targets,
BeanOperations beanOperations)
Execute the fill operation.
|
void |
execute(Collection<?> targets,
Class<? extends BeanOperationExecutor> executorType)
Execute the fill operation.
|
void |
executeAsync(Collection<?> targets)
Execute the fill operation asynchronously.
|
void |
executeAsync(Collection<?> targets,
Predicate<? super KeyTriggerOperation> filter)
Execute the fill operation asynchronously.
|
void |
executeOrdered(Collection<?> targets)
Execute the fill operation in order.
|
void |
executeOrdered(Collection<?> targets,
Predicate<? super KeyTriggerOperation> filter)
Execute the fill operation in order.
|
BeanOperations |
getBeanOperations(@NonNull AnnotatedElement element)
Get the bean operations from the element.
|
static Crane4jTemplate |
withDefaultConfiguration()
Create a
Crane4jTemplate instance with default configuration. |
static Crane4jTemplate |
withDefaultConfiguration(@NonNull Consumer<SimpleCrane4jGlobalConfiguration.Builder> builderConsumer)
Create a
Crane4jTemplate instance with default configuration. |
public static Crane4jTemplate withDefaultConfiguration()
Crane4jTemplate instance with default configuration.SimpleCrane4jGlobalConfigurationpublic static Crane4jTemplate withDefaultConfiguration(@NonNull Consumer<SimpleCrane4jGlobalConfiguration.Builder> builderConsumer)
Crane4jTemplate instance with default configuration.builderConsumer - builder consumer for SimpleCrane4jGlobalConfiguration.BuilderSimpleCrane4jGlobalConfigurationpublic BeanOperations getBeanOperations(@NonNull AnnotatedElement element)
element - elementpublic void execute(Collection<?> targets, BeanOperationExecutor executor, Predicate<? super KeyTriggerOperation> filter)
targets - targetsexecutor - executorfilter - filterpublic void execute(Collection<?> targets, BeanOperationExecutor executor)
targets - targetsexecutor - executorpublic void execute(Collection<?> targets, Class<? extends BeanOperationExecutor> executorType)
targets - targetsexecutorType - executor typepublic void execute(Collection<?> targets)
targets - targetspublic void execute(Collection<?> targets, BeanOperations beanOperations)
targets - targetsbeanOperations - bean operationspublic void executeAsync(Collection<?> targets, Predicate<? super KeyTriggerOperation> filter)
targets - targetsfilter - filterAsyncBeanOperationExecutorpublic void executeAsync(Collection<?> targets)
targets - targetsAsyncBeanOperationExecutorpublic void executeOrdered(Collection<?> targets, Predicate<? super KeyTriggerOperation> filter)
targets - targetsfilter - filterOrderedBeanOperationExecutorpublic void executeOrdered(Collection<?> targets)
targets - targetsOrderedBeanOperationExecutorCopyright © 2024. All rights reserved.