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...
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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...