[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Bean instantiate order with contextual injection
adrian@jboss.org
do-not-reply at jboss.com
Tue Aug 15 06:08:32 EDT 2006
Nope. It is still broken.
You should not modify the BeanMetaData inside the Kernel.
This is a representation of what the user wants.
What you have done is added a reference to the class in the SuppliesMetaData
which once the bean gets uninstalled will cause a memory leak.
UninstalledBeanMetaData (waiting to get reinstalled) ->
SuppliesMetaData -> Class -> ClassLoader (that is supposed to be
garbage collected).
I don't even see why you are doing this?
All you need to do is to modify the kernel registry plugin entry point
getEntry() to use your contextsByClass.
http://docs.jboss.org/nightly/microkernel/docs/reference/en/html/registry.html#registryfactory-overview
Did you try running the full testsuite? org.jboss.test.KernelAllTestSuite.
or from the command line
./build.sh -f build-test.xml tests
There are currently 38 failures and 1 error.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965213#3965213
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965213
More information about the jboss-dev-forums
mailing list