属于依赖注入模式的一种。 适用于组件化编程; 案例: android组件注册; 配置文件; observer模式; taget-action模式; 转载于:https://www.cnblogs.com/feng9exe/p/9522444.html