Help with lookup

[email protected] Wed, 20 Aug 2003 15:43:05 -0700
Newsgroups gmane.comp.java.netbeans.modules.projects.devel
Message-ID <[email protected]>
I have a look (org/netbeans/modules/j2ee/deployment/impl/projects/J2eeModuleProjectLook) that adds a lookup.item to the project's lookup.

I'd like Lookup.Item.getInstance() to be called lazily - ie only
somebody actually interested in the particular lookup should cause the
object that's very expensive to create to be created.

Unfortunately, project open seems to call all the getInstances()
multiple times (4-5 times).  For example, LookNode.getIcon() seems to
ask for my lookup to be created.

I think this is because ProxyNode$R method getAllItems() is called not
getAllClases(), but I don't really have time to explore all these
issues.

Ideas?

--George