Feb 16th, 2010, 01:18 PM
Use ProxyFactoryBean programmatically
Is it possible to use the ProxyFactoryBean programmtically?
I have to write an "DB Entity Interceptor": A proxy should filter entities by security aspects (e.g. User A is not allowed to see Entity B -> remove it from search results).
The methodinterceptor is generated and when for example "listB"-Method is called, the ProxyBeanFactory intercepts the call, delegates to the interceptor. The interceptor checks then the security permissions.
However, I am not so sure, how I can surpass my MethodInterceptor to the ProxyBeanFactory and how to get the Proxy-Object from it. Any idea?
Or do you know another workaround for my problem?