[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Scoped Kernels

adrian@jboss.org do-not-reply at jboss.com
Fri Feb 23 13:48:40 EST 2007


"alesj" wrote : "adrian at jboss.org" wrote : but also needs to use ConstrollerContext.getScopeKey()
  | 
  | From previous problem (duplicate 'context') temp fix, I currently have Context's hashCode under WORK level to diff the contexts. What's the appropriate fix?
  | 

I don't understand that.

anonymous wrote : 
  | What about this new scope key - gained from class/bean (deployment) annotations? Should it be considered once it is resolved - with some update to current context scope - or is this how I used it ok --> install ScopeKey.

It's generally a bad idea to change an identity (hashCode/equals)
unless you are sure that nobody storing an object in a collection
is going to be broken by it.

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

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



More information about the jboss-dev-forums mailing list