小马哥课程笔记
轻量级 IoC 容器
《Expert One-on-One™ J2EE™ Development without EJB™》认为轻量级容器的特征:
- A container that can manage application code.
- A container that is quick to start up.
- A container that doesn’t require any special deployment steps to deploy objects within it.
- A container that has such a light footprint and minimal API dependencies that it can be run in a variety of environments.
- A container that sets the bar for adding a managed object so low in terms of deployment effort and performance overhead that it’s possible to deploy and manage fine-grained objects, as well as coarse-grained components.
《Expert One-on-One™ J2EE™ Development without EJB™》认为轻量级容器的好处:
- Escaping the monolithic container
- Maximizing code reusability
- Greater object orientation
- Greater productivity
- Better testability