public class InjectNamedProvider extends Object implements InjectionProvider2
Constructor and Description |
---|
InjectNamedProvider(ObjectLocator locator,
ComponentClassCache cache) |
Modifier and Type | Method and Description |
---|---|
boolean |
provideInjection(PlasticField field,
ObjectLocator locator,
MutableComponentModel componentModel)
Perform the injection, if possible.
|
public InjectNamedProvider(ObjectLocator locator, ComponentClassCache cache)
public boolean provideInjection(PlasticField field, ObjectLocator locator, MutableComponentModel componentModel)
InjectionProvider2
PlasticField.inject(Object)
. The caller is responsible for invoking PlasticField.claim(Object)
.provideInjection
in interface InjectionProvider2
field
- that has the Inject
annotationlocator
- allows services to be locatedcomponentModel
- defines the relevant aspects of the component5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.