- All Implemented Interfaces:
public class BlockInjectionProvider extends Object implements InjectionProvider2Identifies fields of type
Blockthat have the
Injectannotation and converts them into read-only fields containing the injected Block from the template. The annotation's value is the id of the block to inject; if omitted, the block id is deduced from the field id. Must be scheduled before
DefaultInjectionProviderbecause it uses the same annotation, Inject, with a different interpretation.
Constructors Constructor Description
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
provideInjection(PlasticField field, ObjectLocator locator, MutableComponentModel componentModel)Perform the injection, if possible.
public boolean provideInjection(PlasticField field, ObjectLocator locator, MutableComponentModel componentModel)Description copied from interface:
InjectionProvider2Perform the injection, if possible. Most often, this will result in a call to
PlasticField.inject(Object). The caller is responsible for invoking
- Specified by:
field- that has the
locator- allows services to be located
componentModel- defines the relevant aspects of the component
- true if an injection has been made (terminates the command chain), false to continue down the chain