Announcement Announcement Module
Collapse
No announcement yet.
overwrite DefaultRemoteInvocationExecutor Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • overwrite DefaultRemoteInvocationExecutor

    I decide to overwrite DefaultRemoteInvocationExecutor in order to make some security checks before real bean invocation. DefaultRemoteInvocationExecutor has one methods and looks like this:

    Code:
    public Object invoke(RemoteInvocation invocation, Object targetObject)
    			throws NoSuchMethodException, IllegalAccessException, InvocationTargetException{
    
    		Assert.notNull(invocation, "RemoteInvocation must not be null");
    		Assert.notNull(targetObject, "Target object must not be null");
    		return invocation.invoke(targetObject);
    	}
    So I have "RemoteInvocation invocation" and "Object targetObject" . I cannot understand how it is possible to know what is "real class name" of this remote invocation, what bean are called?

    targetObject.getClass() gives smth like this $proxy34. should I cast this "proxy" to smth else?
Working...
X