public class Factory extends ObjectProvider
| Modifier and Type | Field and Description |
|---|---|
protected List<ObjectAttribute> |
attributes |
protected Class<?> |
implType |
protected ObjectMethod |
initMethod |
ctx, id, type| Constructor and Description |
|---|
Factory(InjectionContext ctx,
Class<?> baseType,
Class<?> implType,
ObjectMethod initMethod,
List<ObjectAttribute> attributes,
String id)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Object |
provide()
Provide an object for injection.
|
getId, getTypeprotected Class<?> implType
protected ObjectMethod initMethod
protected List<ObjectAttribute> attributes
public Factory(InjectionContext ctx, Class<?> baseType, Class<?> implType, ObjectMethod initMethod, List<ObjectAttribute> attributes, String id)
public Object provide() throws InjectionException
ObjectProviderprovide in class ObjectProviderInjectionExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class ObjectProviderCopyright © 2018. All rights reserved.