Announcement Announcement Module
No announcement yet.
Adding MethodInterceptors dynamically Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Adding MethodInterceptors dynamically

    I would like to know if there is a way to add MethodInterceptors dynamically
    for a proxy of a server bean on the client.

    What I am looking for is something like

    ProxyFactory(getServiceInterface(), this).getProxy().addMethodInterceptor(methodInterc eptor).

    The goal is to do client side caching. Any time user calls server proxy.getApi() the method call gets intercepted to see if the client already has the info in the cache. In my use case I cannot define my methodInterceptor to the spring bean, but to the spring proxy.

    Appreciate any help