From 058dd3c1b06ee338b951c60f6b8982fa1f5863b1 Mon Sep 17 00:00:00 2001 From: Glenn Renfro Date: Tue, 18 May 2021 09:05:19 -0400 Subject: [PATCH] Add getters for targetMethod and targetObject in AbstractMethodInvokingDelegator Resolves #1786 --- .../adapter/AbstractMethodInvokingDelegator.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/adapter/AbstractMethodInvokingDelegator.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/adapter/AbstractMethodInvokingDelegator.java index 8cf1ac7849..56102d2f48 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/adapter/AbstractMethodInvokingDelegator.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/adapter/AbstractMethodInvokingDelegator.java @@ -40,6 +40,7 @@ * * @author Robert Kasanicky * @author Mahmoud Ben Hassine + * @author Glenn Renfro */ public abstract class AbstractMethodInvokingDelegator implements InitializingBean { @@ -215,6 +216,20 @@ protected Object[] getArguments() { return arguments; } + /** + * @return the object on which the method will be invoked. + */ + protected Object getTargetObject() { + return targetObject; + } + + /** + * @return the name of the method to be invoked. + */ + protected String getTargetMethod() { + return targetMethod; + } + /** * Used to wrap a {@link Throwable} (not an {@link Exception}) thrown by a * reflectively-invoked delegate.