Versions Compared

Key

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

...

  1. Slice context is created. Read more about the context here.
  2. InjectorRunner is created. It's a helper which allows you to add modules, creates injector and register it in injector repository. It needs INJECTOR_NAME to register injector under this String. Please read more about injectors repository to get to know how does it work and what name to choose.
  3. List of Slice modules is created. The meaning of constants is as follows:
    • INJECTOR_NAME - name of the injector under which is registered
    • BUNDLE_NAME_FILTER - the pattern that defines which bundles to scan in order to find classes annotated by @SliceResource annotation. Only bundles which symbolic names matche the pattern are scanned.
    • BASE_PACKAGE - the base package that defines which packages inside bundles specified above to scan in order to find classes annotated by @SliceResource annotation.
  4. CQ modules are created
  5. Validation modules are created
  6. List of your modules is created. You should instantiate all the custom modules of your application in the createCustomModules method.
  7. All the modules are installed
  8. InjectorRunner is started which means that it creates the Guice injector, install all the provided modules and registered the injector in the injector repository under the specified name.

...