public class SingletonOnDemand extends Singleton
| Modifier and Type | Field and Description |
|---|---|
protected net.lecousin.framework.util.Provider<?> |
provider |
id, type| Constructor and Description |
|---|
SingletonOnDemand(Class<?> type,
net.lecousin.framework.util.Provider<?> provider,
String id)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
provide(InjectionContext ctx)
Provide an object for injection in the given context.
|
getId, getTypepublic Object provide(InjectionContext ctx)
ObjectProviderCopyright © 2018. All rights reserved.