public class ServiceInjectionProvider extends Object implements InjectionProvider2
Inject
annotation that, when all other forms of injection have failed,
matches the field type to a service interface.Constructor and Description |
---|
ServiceInjectionProvider(ObjectLocator locator,
ComponentClassCache classCache) |
Modifier and Type | Method and Description |
---|---|
boolean |
provideInjection(PlasticField field,
ObjectLocator locator,
MutableComponentModel componentModel)
Perform the injection, if possible.
|
public ServiceInjectionProvider(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.