Skip to content

Releases: avaje/avaje-inject

6.0.RC3 | 5.0.RC3

26 May 12:13
Compare
Choose a tag to compare

Issues:

#118 - Add compile error when @singleton has a @request scope dependency
#117 - java.lang.AutoClosable automatically gets a PreDestroy hook
#115 - Add JUnit 5 @ExtendWith(InjectExtension.class) enhancement
#114 - Add to Builder API support for withMock() and withSpy() taking name qualifier

6.0.RC2 | 5.0.RC2

19 May 05:01
Compare
Choose a tag to compare

#113 - Opps, use build_ prefix for reading meta data annotations from build methods

6.0.RC1 | 5.0.RC1

18 May 02:43
Compare
Choose a tag to compare

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

4.4

12 May 00:00
Compare
Choose a tag to compare
4.4

Issues:

#103 - Handle @nAmed with empty string / no actual string qualifier name
#102 - Tidy generated code for field injection
#101 - Fix isAddBeanFor() to include implementation type with interface types bug
#100 - Support Optional as result type of @bean methods. Support Optional and @nullable for injection
#99 - Support @Inject on method with no arguments bug
#98 - Support @singleton that extends another concrete @singleton
#97 - Refactor to register using explicit types rather than bean.getClass() canonical name
#96 - Case insensitive qualifier names

3.4

11 May 23:28
Compare
Choose a tag to compare
3.4

Same as per 4.4 but for javax.inject

4.2

02 May 10:35
Compare
Choose a tag to compare
4.2

#93 - Improve warning logged for missing dependencies
#92 - Fix/support circular dependency binding when using Provider interface
#90 - Fix compile message - suggest circular dependency when really just missing dependency (missing @singleton)
#91 - For choosing constructor - choose single public constructor or single accessible constructor
#89 - Tidy javadoc to use proper @ in code examples. May require jdk 15 javadoc tool to generate javadoc ...
#88 - Change @generated to use RetentionPolicy.RUNTIME refactor

3.2

02 May 10:35
Compare
Choose a tag to compare
3.2

#93 - Improve warning logged for missing dependencies
#92 - Fix/support circular dependency binding when using Provider interface
#90 - Fix compile message - suggest circular dependency when really just missing dependency (missing @singleton)
#91 - For choosing constructor - choose single public constructor or single accessible constructor
#89 - Tidy javadoc to use proper @ in code examples. May require jdk 15 javadoc tool to generate javadoc ...
#88 - Change @generated to use RetentionPolicy.RUNTIME refactor

4.1

08 Dec 21:14
Compare
Choose a tag to compare
4.1

Issues:

#83 - Ignore any @Generated annotation from registration bug
#84 - Fix for method injection with qualifier bug

3.1

08 Dec 21:14
Compare
Choose a tag to compare
3.1

Issues:

#83 - Ignore any @Generated annotation from registration bug
#84 - Fix for method injection with qualifier bug

4.0 (jakarta.inject)

16 Nov 09:12
Compare
Choose a tag to compare

jakarta.inject release

This release is functionally the same as 3.0 but depends on and uses jakarta.inject

#82 - Change to jakarta.inject from javax.inject