com.sun.hk2.component
Interface Holder<T>
- All Known Subinterfaces:
- Creator<T>, Inhabitant<T>
- All Known Implementing Classes:
- AbstractCreatorImpl, AbstractInhabitantImpl, ConstructorCreator, ConstructorWomb, EventPublishingInhabitant, ExistingSingletonInhabitant, FactoryCreator, 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 © 2011 Oracle Corporation. All Rights Reserved.