[jboss-dev-forums] [Design the new POJO MicroContainer] - Recent changes Microcontainer
adrian@jboss.org
do-not-reply at jboss.com
Thu Jan 11 09:14:00 EST 2007
isAssignable/Progression
This logic needs moving into the TypeInfo abstraction, see the TODO
I added to the code. isProgression is just a special form isAssignable.
For now I've fixed the failing tests (that don't provide a classloader)
by stealing it from the bean's class.
Builder
I've refactored the builder so the main entry point is part of the spi.
I moved the implementation into its own package so it doesn't get confused
as implementation of the metadata itself.
I also removed the use of reflection and made the impl type safe.
We have to use reflection sometimes because we don't know the types
or "joinpoints" at compile time, but using reflection bypasses compiler checks
which means you only find out it is broken at runtime, so we should avoid it
where it is possible.
Finally, the builder needs some tests. One of my "laws of programming"
is "If it isn't tested, it doesn't work" :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000445#4000445
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000445
More information about the jboss-dev-forums
mailing list