InjectionProvider2
instead. Instances
of InjectProvider will be coerced to InjectionProvider2.public interface InjectionProvider
Inject
annotation is
present. In this case, the provider is responsible for determining the value to be injected from the field name and
field type.
This interface will be used as part of a chain of command
.Modifier and Type | Method and Description |
---|---|
boolean |
provideInjection(String fieldName,
Class fieldType,
ObjectLocator locator,
ClassTransformation transformation,
MutableComponentModel componentModel)
Deprecated.
Perform the injection, if possible.
|
boolean provideInjection(String fieldName, Class fieldType, ObjectLocator locator, ClassTransformation transformation, MutableComponentModel componentModel)
TransformField.inject(Object)
. The caller is responsible for claiming the field.fieldName
- the name of the field requesting injectionfieldType
- the type of the fieldlocator
- allows services to be locatedtransformation
- allows the code for the class to be transformedcomponentModel
- defines the relevant aspects of the componentCopyright © 2003-2012 The Apache Software Foundation.