Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Once the injector is created in your activator, it must be stored somewhere, so that it can be reused to provide models for you components. Thanks to this, there will be no need to recreate injector for every subsequent request. The place where created and configured injectors live is called Injectors Repository.

...

Info

In above examples we injected resource and then adapted it to ValueMap in order to read its properties. Normally, you don't want to do this - you should use @SliceResource annotated classes and properties values will be injected in fields. Read more about Mapper.