[jboss-dev-forums] [Design the new POJO MicroContainer] - Wrong methods on KernelControllerContext

adrian@jboss.org do-not-reply at jboss.com
Tue Aug 28 13:58:07 EDT 2007


While looking at the scoping changes, I discovered some wrong methods
on the KernelControllerContext.

To repeat what I said before, most of the runtime state/config should be done
through the DependencyInfo not the ControllerContext.

Where the ControllerContext holds state it is simply useful information
to prevent repeated access/construction, e.g. BeanInfo in the POJO stuff
or the legacy ServiceContext in the MBean stuff.

I removed applyMetaData() since that was completely unnecessary.
I factored out the MetaDataVisitor implementations from AbstractKernelControllerContext
to make it obvious that this stuff doesn't need to be in the context and is entirely
orthogonal.

I moved isAutowireCandidate() to the DependencyInfo where it belongs.

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

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



More information about the jboss-dev-forums mailing list