[jboss-user] [JBoss AOP] - Re: AOP proxy, do I lose method annotation information?

genman do-not-reply at jboss.com
Fri Jul 27 16:51:34 EDT 2007


The work-around seems to be:

  | 	public void install(ControllerContext ctx){
  | 		Object target = ctx.getTarget();
  | 		
  | 		// AOP proxy hides the annotations of a class ...
  | 		try {
  | 			target = target.getClass().getMethod("getDelegate").invoke(target);
  | 		} catch (Exception e) {
  | 			throw new RuntimeException(e);
  | 		}
  | 
  | ...
  | 

But it would be much better if I didn't have to do this. I'm guessing there's some limitation with the proxy system to generate class information with annotated methods.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068376#4068376

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068376



More information about the jboss-user mailing list