Sure...but wouldn't the generated interfaces have to be created at pre-compile 
time? And annotations provide metadata that's part of the compiled code...

anonymous wrote : Of course FooBean does not implement an interface now 
anymore, but invocations could be handled by some sort of dynamic proxy, right? 

OK, but when you do your lookup to the proxy that doesn't implement an 
interface, how would you cast it or call methods on it?

InitialContext ctx = new InitialContext(props);
  | Object obj = ctx.lookup("jndiAddress");
  | ((FooLocal)obj).foo(); // < You wouldn't be able to cast or invoke if the 
proxy doesn't implement an interface

Sounds like you'd just like an XDoclet-esque step for generating Java source 
before compilation?

S,
ALR

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978634
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to