[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: mc-script - and other stupid ideas
adrian@jboss.org
do-not-reply at jboss.com
Thu Jun 4 07:29:59 EDT 2009
While doing this I came across a problem with re-using the MC metadata classes.
Kabir appears to have found the same problem in the aop stuff and used the same
hack that I have below.
Some of the ValueAdapters are defined at the package/schema level
rather than being associated with the type.
So I have to redefine them in my schema otherwise I can't use the classes for xml parsing. This is incredibly brittle configuration.
https://svn.jboss.org/repos/jbossas/projects/mc-script/trunk/src/main/java/org/jboss/beans/script/package-info.java
If somebody adds a new adapter, other users of the classes will break because
they don't know about the new adapter. They probably won't use the new adapter
but the construction of the SchemaBinding from the annotations will look at the
class being adapted and complain.
These adapters should be on their respective types. The only reason to define
them on the schema is when you can't change the type.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235288#4235288
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235288
More information about the jboss-dev-forums
mailing list