Class BlockInjectionProvider

  • All Implemented Interfaces:
    InjectionProvider2

    public class BlockInjectionProvider
    extends java.lang.Object
    implements InjectionProvider2
    Identifies fields of type Block that have the Inject annotation 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 DefaultInjectionProvider because it uses the same annotation, Inject, with a different interpretation.