| Modifier and Type | Field and Description |
|---|---|
protected InjectionContext |
ctx |
protected String |
id |
protected Class<?> |
type |
| Constructor and Description |
|---|
ObjectProvider(InjectionContext ctx,
Class<?> type,
String id)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close() |
String |
getId() |
Class<?> |
getType() |
abstract Object |
provide()
Provide an object for injection.
|
protected InjectionContext ctx
protected Class<?> type
protected String id
public ObjectProvider(InjectionContext ctx, Class<?> type, String id)
public abstract Object provide() throws InjectionException
InjectionExceptionpublic Class<?> getType()
public String getId()
public abstract void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2018. All rights reserved.