标签:
Strange attractors create predictable patterns, often in chaotic systems. 在混乱的系统中创造出一个可以预测的模式 .
StrangeIoc主要用于C#与Unity3d,我们已经在IOS,Web,Android项目中成功运用,他包含了如下功能,其中大部分功能都是可选的
Strange is a super-lightweight and highly extensible Inversion-of-Control (IoC) framework, written specifically for C# and Unity. We’ve validated Strange on web, standalone, and iOS and Android. It contains the following features, most of which are optional:
框架的核心是让你绑定一个或多个对象
依赖注入
1.映射单例,每次都可通过工厂返回新实例
2.类名注入
3.属性器注入
4.构造注入
5.方法注入
6.Monobehaviors注入
7.绑定多态
8.反射与绑定结合,减少反射的性能开销
两种类型的事件共享总线
1.二者的dispatch事件可在程序的任何一处调用
2.二者为了实现本地通信都需要映射本地事件总线
3.二者为了分离逻辑都需要映射事件
4.新的Signals的实现增加了类型安全
介绍可选MVCS部分
1.多上下文,在单独的功能中使用自身的上下文,全局功能中使用程序级上下文
2.允许多个上下文之间通信
In addition to organizing your project into a sensible structure, Strange offers the following benefits:
和Keyle一起学StrangeIoc – Introduction
标签:
原文地址:http://www.cnblogs.com/Keyle/p/4292303.html