Scaldi v0.5 Release Notes

Release Date: 2015-01-31 // about 9 years ago
  •   bind [Engine] to annotated [V8Engine]
    
    • OnDemandAnnotationInjector - New Injector that creates JSR 330 compliant bindings on-demand (when they are injected)
    • AnnotationIdentifier allows to bind classes with JSR 330 Qualifier annotation. You can now also use it in the bindings:
      import scaldi.jsr330._
    
      bind [Seat] identifiedBy qualifier [Drivers] to annotated [DriversSeat]
    
    • Required identifiers. Every identifier now defines, whether it is required during the lookup. The only required built-in identifier at the moment is AnnotationIdentifier. You can now also make an identifier (not) required in the binding with the new syntax:
      bind [Tire] identifiedBy required('spare) to annotated [SpareTire]
      bind [Seat] identifiedBy notRequired(qualifier [Drivers]) to annotated [DriversSeat]
    
    • ๐Ÿ“š ImmutableWrapper that was previously described in the documentation now is part of the scaldi codebase.
    • ๐Ÿšš in binding syntax is now deprecated and will be removed in future versions of Scaldi.
    • ๐Ÿ‘ Typesafe config is now natively supported via TypesafeConfigInjector
    • ๐Ÿšš ReflectiveBinder and StaticModule are deprecated and will be removed in the next versions
      • Module does not support ReflectiveBinder anymore - only word bindings are supported