Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: convert injectors to table

...

  • @Model - declares a model class or interface
  • @Inject - marks a field or method as injectable
  • @Named - declare a name for the injection (otherwise, defaults based on field or method name).
  • @Optional - marks a field or method injection as optional
  • @Source - explictly tie an injected field or method to a particular injector (by name). Can also be on other annotations.
  • @Filter - an OSGi service filter
  • @PostConstruct - methods to call upon model option creation (only for model classes)
  • @Via - use a JavaBean property of the adaptable as the source of the injection
  • @Default - set default values for a field or method

Available Injectors

TitleName (for @Source)DescriptionApplicable To (including using @Via)Notes
Value Map

...

valuemapGets a property from a Value MapAny object which is or can be adapted to a ValueMap 
OSGI Servicesosgi-servicesLookup services based on class name

...

Any objectEffectively ignores name.
Script Bindings

...

script-bindings

...

Lookup objects in the script bindings objectA ServletRequest object which has the Sling Bindings attribute defined 
Child Resources

...

child-resources

...

Gets a child resource by nameResource objects 
Request Attributes

...

request-

...

attributesGet a request attributeServletRequest objects