Add getters for targetMethod and targetObject in AbstractMethodInvokingDelegator
Resolves #1786
This commit is contained in:
committed by
Mahmoud Ben Hassine
parent
48925f0db4
commit
058dd3c1b0
@@ -40,6 +40,7 @@ import org.springframework.util.StringUtils;
|
||||
*
|
||||
* @author Robert Kasanicky
|
||||
* @author Mahmoud Ben Hassine
|
||||
* @author Glenn Renfro
|
||||
*/
|
||||
public abstract class AbstractMethodInvokingDelegator<T> implements InitializingBean {
|
||||
|
||||
@@ -215,6 +216,20 @@ public abstract class AbstractMethodInvokingDelegator<T> implements Initializing
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user