Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 775 Bytes

README.md

File metadata and controls

23 lines (12 loc) · 775 Bytes

imitate-spring

A lightweight framework that imitates Spring, implementing IoC (Inversion of Control) and AOP (Aspect-Oriented Programming).

Features

  • Register bean definitions with @Component and use @ComponentScan to scan all component classes within a specified package.
  • Register bean definitions via java configuration, annotated with @Configuration and @Bean.
  • Use AnnotationConfigApplicationContext to create a container, and call refresh() to complete the initialization.
  • Implement five types of AOP advice: @Before, @After, @Around, @AfterReturning, and @AfterThrowing, with the advices being executed in a predefined order.

Special Considerations

Conclusion

Environment

  • Java Version: JDK11
  • Build Tools: Gradle