Skip to content

Commit

Permalink
Add getters for targetMethod and targetObject in AbstractMethodInvoki…
Browse files Browse the repository at this point in the history
…ngDelegator

Resolves #1786
  • Loading branch information
cppwfs authored and fmbenhassine committed Sep 14, 2023
1 parent 48925f0 commit 058dd3c
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
*
* @author Robert Kasanicky
* @author Mahmoud Ben Hassine
* @author Glenn Renfro
*/
public abstract class AbstractMethodInvokingDelegator<T> implements InitializingBean {

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 058dd3c

Please sign in to comment.