Skip to content

6.0.RC1 | 5.0.RC1

Compare
Choose a tag to compare
@rbygrave rbygrave released this 18 May 02:43
· 1405 commits to master since this release

Additions:

  • Adds @Request and RequestScope
  • Adds ApplicationScope with the view of migrating from SystemContext to ApplicationScope.
  • In adding request scope this lead to quite a lot of refactoring and simplification of internals

Breaking changes:

  • BeanContext renamed to BeanScope - This gives us better Alignment with RequestScope and ApplicationScope
  • @ContextModule renamed to @InjectModule
  • Closeable is treated as a @PreDestroy method
  • BeanLifecycle interface removed - Just use @PostConstruct and @PreDestroy / Closeable interface
  • Removed sortBy() methods - Migrate to performing your own sort as needed

Other changes:

  • SystemContext deprecated in favour of @ApplicationScope

Issues:


#112 - Rename ContextModule to InjectModule and BeanContextFactory to BeanScopeFactory
#111 - Support inherited field/method injection (ref #86)
#110 - Refactor/remove sort by methods
#109 - Refactor rename BeanContext to BeanScope (to better align with ApplicationScope and RequestScope) breaking-api
#108 - Add ApplicationScope
#107 - Add RequestScope support (for #85)
#106 - Refactor/simplify to single builder - remove parent/child part refactor
#104 - Should a bean that implements Closable / AutoClosable automatically get a PreDestroy hook?
#86 - Run Jakarta Dependency Injection TCK
#85 - Not totally obvious how to do your own request scoping