public void setTargetObject ( Object targetObject ) { this . targetObject = targetObject ; if ( targetObject != null ) { this . targetClass = targetObject . getClass ( ) ; } }
Set the target object on which to call the target method . Only necessary when the target method is not static ; else a target class is sufficient .