C H A P T E R  5

Lookup Concept

The Lookup concept is as important as it is simple. Used in many places within NetBeans Platform applications, it allows modules to communicate with each other. This chapter shows typical use cases and how the Lookup concept works.


The Lookup is a central component and a commonly used concept in the NetBeans Platform for the management of object instances. Simplified, the Lookup is a Map, with Class objects as keys and instances of those Class objects as values.

The main idea behind the Lookup is decoupling components. I let modules communicate with each other, which plays an important role in component-based systems, such as applications based on the NetBeans Platform. On the one hand, modules ...

Get The Definitive Guide to NetBeans™ Platform 7 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.