"alesj" wrote :
| Perhaps we should change what value we keep at INSTANCE scope.
| e.g. the stuff we already discussed, adding ID to ControllerContext,
| which is unique, and pass that as INSTANCE value.
|
Changing INSTANCE value to
| scopeKey.addScope(CommonLevels.INSTANCE, name.toString() + hashCode());
| if (className != null)
| scopeKey.addScope(CommonLevels.CLASS, className);
| setScope(scopeKey);
| setMutableScope(new ScopeKey(CommonLevels.INSTANCE, name.toString() +
hashCode()));
|
Only breaks tests that explicitly set MetaData to repository via bean name.
All other tests pass.
Perhaps completely random/unique INSTANCE value isn't good solution,
since then you cannot do what we do in MutableMetaDataTestCase,
setting predetermined metadata to an instance.
But then again, getting some ID in advance, applying predetermined metadata,
and the somehow passing this ID to ControllerContext,
is again the same problem as we already have - how to uniquely map ID to class and bean
name.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169845#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...