It's nice that there's more than one way to create and name components in seam, 
but it certainly takes some discipline on the part of the programmer to 
organize them thoughtfully, and minor slips in naming result in null values 
getting injected.  This is easy to catch when not using required=false or 
create=true, but it can be maddening otherwise. Every time I misspell a 
component name or forget some file when I've renamed it, I curse a little that 
I couldn't catch it until runtime.  It's like the terse expressiveness of Java 
with the rigor and safety of python :p

Is it possible or feasable for there to be a way for the scanner to check uses 
of @In to ensure that there is a matching @Out, @Name, @Role or declaration in 
components.xml?   Scanning all injections at startup time would be pretty 
expensive, but could still be an option for a development environment.

Adding something to JBossIDE to check seam annotations and add the appropriate 
squiggly lines would also be quite nifty with or without any of the other 
suggestions.  


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

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

Reply via email to