Skip to content

RDI v1.1.2

Compare
Choose a tag to compare
@Alex1304 Alex1304 released this 20 May 21:57
· 5 commits to master since this release
  • Fix a bug that could cause the service instantiation to never complete in some very rare cases.
  • The @RdiService annotation now has an optional as parameter that allows to register the service as a supertype of it. For example if Circle implements Shape and the Circle class has @RdiService(as = Shape.class) on it, it would be possible to inject it in methods accepting a Shape as parameter. This feature was made possible with the addition of ServiceDescriptor.Builder#setConcreteType(Class) which allows to specify a subtype of the service class to instantiate when building a service descriptor.