This content has been marked as final.
Show 3 replies
-
1. Re: Scoping changes
adrian.brock Aug 29, 2007 10:39 AM (in response to adrian.brock)I also removed the immutable MetaData and cloning of the ScopeKey
from the container injection.
These are completely unnecessary. MetaData is already immutable
(its a wrapper to the mutable context) and the ScopeKey becomes immutable (frozen)
once its used by the repository to register a context. -
2. Re: Scoping changes
alesj Aug 29, 2007 10:44 AM (in response to adrian.brock)"adrian@jboss.org" wrote:
These are completely unnecessary. MetaData is already immutable
(its a wrapper to the mutable context) and the ScopeKey becomes immutable (frozen)
once its used by the repository to register a context.
Aha, ok.
I was looking at the MetaData. The interface itself is immutable, but to prevent someone to actually cast it to mutable impl and then change the state, I added Unmodifiable wrapper. -
3. Re: Scoping changes
alesj Aug 29, 2007 10:48 AM (in response to adrian.brock)Or is MetaDataRetrievalToMetaDataBridge the only actual impl instance that is exposed as MetaData?
That's OK then as well, since that one is immutable as well. ;-)