public class Singleton extends ObjectProvider
| Modifier and Type | Field and Description |
|---|---|
protected Object |
instance |
id, type| Constructor and Description |
|---|
Singleton(Class<?> type,
Object instance,
String id)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
provide(InjectionContext ctx)
Provide an object for injection in the given context.
|
getId, getTypeprotected Object instance
public Object provide(InjectionContext ctx)
ObjectProviderprovide in class ObjectProviderCopyright © 2018. All rights reserved.