my dog learned polymorphism*
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 Android Security Essentials Live Lessons this week in the Android 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: 761


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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Lazy Loading pattern
Similar Threads
Pattern question Relating to Factory and AbstractFactory example
Is my example still conform with the Proxy Pattern?
B&S: How to add RemoteException capability to DB interface?
Object Oriented Enunciate (low coupling)