Class InjectNamedProvider
- java.lang.Object
-
- org.apache.tapestry5.internal.transform.InjectNamedProvider
-
- All Implemented Interfaces:
InjectionProvider2
public class InjectNamedProvider extends java.lang.Object implements InjectionProvider2
- Since:
- 5.3
-
-
Constructor Summary
Constructors Constructor Description InjectNamedProvider(ObjectLocator locator, ComponentClassCache cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
provideInjection(PlasticField field, ObjectLocator locator, MutableComponentModel componentModel)
Perform the injection, if possible.
-
-
-
Constructor Detail
-
InjectNamedProvider
public InjectNamedProvider(ObjectLocator locator, ComponentClassCache cache)
-
-
Method Detail
-
provideInjection
public boolean provideInjection(PlasticField field, ObjectLocator locator, MutableComponentModel componentModel)
Description copied from interface:InjectionProvider2
Perform the injection, if possible. Most often, this will result in a call toPlasticField.inject(Object)
. The caller is responsible for invokingPlasticField.claim(Object)
.- Specified by:
provideInjection
in interfaceInjectionProvider2
- Parameters:
field
- that has theInject
annotationlocator
- allows services to be locatedcomponentModel
- defines the relevant aspects of the component- Returns:
- true if an injection has been made (terminates the command chain), false to continue down the chain
-
-