com.sun.hk2.component
Interface Holder<T>
- All Known Subinterfaces:
- Inhabitant<T>, Womb<T>
- All Known Implementing Classes:
- AbstractInhabitantImpl, AbstractWombImpl, ConstructorWomb, EventPublishingInhabitant, ExistingSingletonInhabitant, FactoryWomb, Holder.Impl, LazyInhabitant, RunLevelInhabitant, ScopedInhabitant, SingletonInhabitant
public interface Holder<T>
Indirection to a value. That is, instead of referring to the value itself,
this class allows you to obtain the value when you need it.
This is the basis for all the lazy computation.
- Author:
- Kohsuke Kawaguchi
Nested Class Summary |
static class |
Holder.Impl<T>
Holder implementation that doesn't do any deferred computation,
where the value is given in the constructor. |
get
T get()
Copyright © 2010 Oracle Corporation. All Rights Reserved.