public class DefaultInjectionProvider extends Object implements InjectionProvider2
Inject
annotation that delegates out to the master
MasterObjectProvider
to access the value. This worker must be scheduled
after certain other workers, such as BlockInjectionProvider
(which is keyed off a combination of type and
the Inject annotation).MasterObjectProvider
Constructor and Description |
---|
DefaultInjectionProvider(MasterObjectProvider masterObjectProvider,
ObjectLocator locator,
ComponentClassCache classCache) |
Modifier and Type | Method and Description |
---|---|
boolean |
provideInjection(PlasticField field,
ObjectLocator locator,
MutableComponentModel componentModel)
Perform the injection, if possible.
|
public DefaultInjectionProvider(MasterObjectProvider masterObjectProvider, ObjectLocator locator, ComponentClassCache classCache)
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 component${project.version} - Copyright © 2003-2015 The Apache Software Foundation.