Skip to content

A lightweight framework that imitates Spring, implementing IoC and AOP.

License

Notifications You must be signed in to change notification settings

wxiach/imitate-spring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A lightweight framework that imitates Spring, implementing IoC and AOP.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages