I am now able to figure out whether there is instance metadata. The problem is to get the context into the AOPConstructorJoinpoint where I am doing the checks. Locally, I have made AOPConstructorJoinpoint implement KernelControllerContextAware, and KernelControllerContextAction.dispatchJoinpoint() set the context if the joinpoint implements the KCCA interface.
All tests now pass, although I am not able to get hold of the context if instantiating the bean via the GenericBeanAspectFactory/GenericBeanFactory.
I will tidy up this and commit tomorrow, and we can discuss from there
"kabir.khan@jboss.com" wrote:
Locally, I have made AOPConstructorJoinpoint implement KernelControllerContextAware
This has been commited to head.
The only reason I added the KCCA to AOPConstructorJoinPoint was to allow the insertion of the ControllerContext - I'll see if I can do the required work in another place. If not, I need some interface to inject it, but don't particularly care what it is called