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