項(xiàng)目源碼 功能實(shí)現(xiàn) 代碼優(yōu)化,注冊(cè)與容器分離 實(shí)現(xiàn)契約綁定(method 契約> class 契約> namespace 契約> 綁定 > 自動(dòng)...
項(xiàng)目源碼 功能實(shí)現(xiàn) 代碼優(yōu)化 添加綁定解析,優(yōu)先從綁定實(shí)例中獲取參數(shù)實(shí)例 代碼實(shí)現(xiàn) Container 注: AbsSingleton為實(shí)現(xiàn)單例...
項(xiàng)目源碼 功能實(shí)現(xiàn) 解決類重復(fù)依賴創(chuàng)建、解決相互依賴(A->B->A->B->...)、循環(huán)依賴(A->B->C->A->B->C->A->.....
項(xiàng)目源碼 功能實(shí)現(xiàn) 基于example1的Container實(shí)現(xiàn),添加對(duì)基本數(shù)據(jù)類型以及mixed變量的實(shí)現(xiàn)支持(賦默認(rèn)值) 代碼實(shí)現(xiàn) Cont...
項(xiàng)目源碼 關(guān)鍵技術(shù) ReflectionClass反射類 遞歸 功能實(shí)現(xiàn) 一個(gè)簡單的自動(dòng)對(duì)象創(chuàng)建容器(暫不考慮相互依賴的類創(chuàng)建) 代碼實(shí)現(xiàn) 實(shí)現(xiàn)...
說明 個(gè)人github地址 項(xiàng)目源碼 一、前置 雜談 關(guān)于造輪子 關(guān)于編寫項(xiàng)目 必要知識(shí) IOC DI ReflectionReflection...