An issue I have with creating a custom BeanFactoryMetaData instance that models an ejb
container is that I want to have the ejb interceptors added to the ejb bean context via
install methods. The custom BeanFactoryMetaData
(org.jboss.test.kernel.deployment.support.container.BeanContextFactory) creates 4+
BeanMetaDatas:
1. GenericBeanFactory(BeanContext) - is the bean factory for creating the bean component
consisting of:
2 - bean context
3 - + bean instance
4 - + 0 or more bean interceptors
The BeanMetaData for the interceptors wants to install the interceptor bean into the
BeanContext by calling the addInterceptor method. However, the BeanMetaData for the
BeanContext if the GenericBeanFactory. There is no notion of the GenericBeanFactory acting
as a proxy for the BeanContext instances in terms of install/uninstall callbacks.
Its not obvious how this can be supported in the current impl as the
GenericBeanFactory.createBean instances are themselves not mc beans with a name that could
be used with the interceptor install metadata.
Ideas on how to do this, add support for it?
See the
org.jboss.test.kernel.deployment.test.BeanContainerUsageTestCaseMD.testComponentBeanFactory
for the current wiring.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142548#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...