Skip to content

Latest commit

 

History

History
74 lines (56 loc) · 3.93 KB

Core.md

File metadata and controls

74 lines (56 loc) · 3.93 KB

Maven Central

Bring Core

General DI Flow Diagram

Bring DI diagram

  1. The BringApplication provides a simple entry point to initialize and run a BringApplicationContext. It allows the user to create and configure a BringApplicationContext either by specifying a base package for component scanning or by providing a class that contains configuration information.
  2. The ClassPathScannerFactory is responsible for creating a set of class path scanners, each designed to scan the classpath for specific types of annotated classes relevant to the Bring application. It initializes scanners for components, services, and configuration classes etc.
  3. The BeanPostProcessorDefinitionFactory is responsible for creating and managing a list of BeanFactoryPostProcessor instances. It initializes the list with default post-processors, such as the ConfigurationClassPostProcessor etc. In this step we create Bean definitions for classes annotated with annotations from ClassPathScanner.
  4. The next step will be to go through all bean definitions and register/create beans with dependencies.
  5. The last one BeanPostProcessorFactory is responsible for creating and managing a list BeanPostProcessor instances. It initializes the list with default post-processors such as the ScheduleBeanPostProcessor and add addition logic to them.

Documentations

  • There are two types of documentation: Markdown (see below) and JavaDoc

Features: