Παρόλο που όταν μιλάμε για dependency injection όλοι σκέφτονται το Spring και προσφάτως το Guice, υπάρχουν και άλλες λύσεις.
Για όσους δεν χρειάζονται όλα τα χαρακτηριστικά του Spring αλλά επιθυμούν απλά ένα ελαφρύ ioc container, πολύ ενδιαφέροντα είναι το Plexus και το pico-container.
Το Plexus είναι μια ασφαλής λύση καθώς χρησιμοποιείται ήδη σε παραγωγή από το Maven και το Struts2. Δείτε επίσης και μια μικρή σύγκριση με Spring.
Το Pico-container είναι άλλη μια λύση που δεν χρησιμοποιεί XML configuration. Δείτε και άλλη μια μικρή σύγκριση.
To pico-container έχει επίσης πολύ έξυπνο documentation γενικά για ioc. Για παράδειγμα υποστηρίζουν ότι το singleton είναι ουσιαστικά anti-pattern.
Είναι προφανές ότι το Spring προσφέρει πολύ περισσότερες δυνατότητες εκτός από ioc οπότε οι εναλλακτικές λύσεις δεν είναι άμεσοι ανταγωνιστές…
Tags: ioc
Although I can’t read what’s written here, I’d like to thank you for the mention.
The paragraph mainly suggests alternative Inversion of Conrol Solutions.
Since most people use Spring and Guice I talk about Plexus and Pico-container. I found your page with the comparison very interesting so I included this as a link.
ενδιαφέρον!!!
[...] σας άρεσαν οι εναλλακτικές προτάσεις για dependency injection, τότε δείτε και [...]
Tired of obtaining low numbers of useless traffic for your site? Well i wish to tell you about a new underground tactic which makes myself $900 each day on 100% AUTOPILOT. I could truthfully be here all day and going into detail but why dont you just check their site out? There is really a great video that explains everything. So if your serious about making simple money this is the website for you. Auto Traffic Avalanche