[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: JBMICROCONT-330 - Preconfigured MDR and scopes
alesj
do-not-reply at jboss.com
Fri Aug 8 11:56:54 EDT 2008
"alesj" wrote :
| Overriding this in some ControllerContext impl doesn't seem like a good fit.
|
e.g.
| protected void initKernelScopeInfo()
| {
| String className = null;
| Object target = getTarget();
| if (target != null)
| className = target.getClass().getName();
| BeanMetaData bmd = getBeanMetaData();
| if (bmd != null)
| {
| String bean = bmd.getBean();
| if (bean != null)
| className = bean;
| }
| setScopeInfo(createScopeInfo(className, bmd));
| }
|
| protected ScopeInfo createScopeInfo(String className, BeanMetaData bmd)
| {
| return new KernelScopeInfo(getName(), className, bmd);
| }
|
Where you could push in your ControllerContext impl,
which would override this createScopeInfo method,
providing ScopeInfo that again has overridden createMetaDataContext method.
Yuck. :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169636#4169636
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169636
More information about the jboss-dev-forums
mailing list