| Summary: | NPE in LoggerMill | ||
|---|---|---|---|
| Product: | [RT] Riena | Reporter: | Stefan Liebig <Stefan.Liebig> |
| Component: | Core | Assignee: | Stefan Liebig <Stefan.Liebig> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | christian.campo |
| Version: | 2.1.0 | ||
| Target Milestone: | 3.0.0.M6 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Stefan Liebig
The reason for this failure is a refactoring that replaced the ´explicit´ wiring with the more convinient wiring with annotations. With the former method it is possible to define the order of injections where the other method relies on the order given by Class.getDeclaredMethods() and there are no guarantees. It is now possible to add a order for the injections, e.g. - @InjectService(useRanking = true, order = 1) - @InjectExtension(order = 0) This order defines the injection sequence (lowest order first, if equal sequence is undefined). The default order (if not specified) is 0. Additionaly there is a new annotation: - @OnWiringDone A method annotated with this annotation will be called if all injectors for this class have been installed and started. This this does not guarantee that i.e. all required services have been injected - they may have not yet been started (registered). The LoggerMill uses now this annotations to define a proper sequence of injections. |