At Wicket, this device is called the lazy proxy factory. Given:
<property name="foo" ref="beanx"/>
the idea is to automatically generate proxies instead of "beanx", and then initialize beanx only when and when something actually calls a method on it.
It seems like it could be the core of Spring. Is it somewhere out there?
source share