[jboss-dev-forums] [Design the new POJO MicroContainer] - JBMICROCONT-362, InstanceClassFactory or override ManagedObj
scott.stark@jboss.org
do-not-reply at jboss.com
Mon Oct 13 23:31:13 EDT 2008
ManagedObject for mcbean deployments are not being created correctly because the AbstractManagedObjectFactory/AbstractManagedObjectPopulator requires that the attachment metadata is what is annotated with the management information. Its the underlying bean that users place the management annotations on. This is similar to service mbeans.
For service mbeans we created a InstanceClassFactory that returns the underlying mbean class to scan for annotations. We can do the same for mcbeans, but we have overriden the ManagedObjectCreator.build method in the BeanDeployer with a TODO to create the ManagedObjects from the bean metadata. This might have been added before we had the InstanceClassFactory in place. I'm going to prototype a InstanceClassFactory since that can be specified at the server level, but I wanted to check if there was a reason to continue with the BeanDeployer ManagedObjectCreator override.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181987#4181987
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4181987
More information about the jboss-dev-forums
mailing list