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.