How to protect dynamic lookup content when it is changing?

"rsobies" <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <[email protected]>
Boris Heithecker wrote:
> Keep a reference to the InstanceContent and synchronize on it. It should work as a common lock. 
> 


synchronization should be done inside setNewKey() and in getLookup()
i cannot override getLookup, it is final
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.