BeanFactory belongs to Core Module.
Context Module extends this and add some another function,including internationalization (I18N) messages, application life
cycle events, and validation.it supplies many enterprise services such as e-mail,JNDI access, EJB integration, remoting, and scheduling. Also included is support for integration with templating frameworks such as Velocity and FreeMarker.
by applying IoC in your projects, you’ll find that your code will become significantly simpler, easier to understand, and easier to test.
Traditionally, each object is responsible for obtaining its own references to the objects it collaborates with (its dependencies). As you’ll see, this can lead to highly coupled and hard-to-test code.
浙公网安备 33010602011771号