I am using Weld implementation of CDI 1.0 and I cannot find way how to make bean lazy like in Spring (using @Lazy or lazy-init in XML). Is there a
@Lazy
lazy-init
See my answer on: http://www.adam-bien.com/roller/abien/entry/lazy_injection_with_javax_inject
Using
@Inject Instance object;
the bean is initialized only when needed ... isn't that what you want?