Dienstag, 15. Juli 2014

Why Spring makes me sick #4

From the Spring Framework Reference Documentation: "Spring sets properties and resolves dependencies as late as possible, when the bean is actually created. This means that a Spring container which has loaded correctly can later generate an exception when you request an object..."

That is exactly what I do not want.
Spring configuration via XMLs breaks type safety i.e. there is no way to see type errors at compile time (though that is not the only kind of error a Spring configuration can contain).
Further more not adhering to the fail-fast-paradigm will, according to Murphy, make applications fail in the worst possible moment. This is really dangerous...

Keine Kommentare:

Kommentar veröffentlichen