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