Samurai的入口点在Samurai这个类,在load方法里实例化了Samurai
samurai目前有这几个服务
ServiceBorder,
ServiceGesture,
ServiceGrids,
ServiceInspector,
ServiceMonitor,
ServiceTapspot
1.2 注册UIApplicationDidFinishLaunchingNotification UIApplicationWillTerminateNotification 消息
2 SamuraiWatcher 开始观察当前目录下的文件的改变
3 当应用起来的时候[Samurai startup]
startup里用 SamuraiClassLoader 对一些类发送了classAutoLoad消息
__ClassLoader_Config,
__ClassLoader_Core,
__ClassLoader_Event,
__ClassLoader_Model,
__ClassLoader_UI,
__ClassLoader_Service,
如果开启了SAMURAI_TESTING, SamuraiUnitTest 这个时候也会run起来.