Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes OO, Patterns, UML and Refactoring and the fly likes Lazy Loading pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Lazy Loading pattern" Watch "Lazy Loading pattern" New topic

Lazy Loading pattern

Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 776


Instead of holding a reference to the real object, you manage an intermediary Reference instance.


a) Eclipse 3.2 API

b) OSGi R4 api

Does anybody know if there's a formal definition of this pattern somewhere ?
Or is it worthy to be called a pattern ?
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
"Patterns of Enterprise Application Architecture" has a Lazy Load pattern included:

Don't have my copy at hand, so I can't tell how closely it fits your description.

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
I agree. Here's the link:
subject: Lazy Loading pattern