[jboss-dev-forums] [Design of EJB 3.0] - Re: metadata

ALRubinger do-not-reply at jboss.com
Mon Dec 17 15:13:13 EST 2007


I think the merits of adding the metadata abstractions to the Containers are pretty apparent, but I'm concerned with the amount of plumbing code this introduces.

For every annotation or XML node, we'll have to make corresponding methods which either delegate back to the metadata object model or redirect to our own instance members.

What are the arguments against bypassing the abstractions and accessing this information directly in the container like:

container.getJBossAssemblyDescriptorMetaData().getJndiName()

instead of:

container.getJndiName()

Sure, 2) is more elegant, but 1) requires no plumbing/abstractions.  

S,
ALR

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

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



More information about the jboss-dev-forums mailing list