整個mybatis原始碼大概被分為三個部分:
目前基礎類**的範圍是:
註解類(annotations包);繫結模組類(binding包);配置解析(builder包);
快取(cache包);資料來源(datasource包);異常(exceptions包);
jdbc(jdbc包);日誌(logging包);io(io包);
反射(reflection包);事務(transaction包);型別轉換(type包);
業務**範圍是
session;
擴充套件類範圍是
外掛程式(plugin)
後續對**學習整理大概被劃分為如下
基礎支援邏輯 (已完成)簡單的基礎支援模組
基礎支援模組(一)
基礎支援模組(二)
核心業務邏輯(已完成)資源的載入(未完成,後續根據整理進度,可能會拆分的更加細)配置檔案的載入
sql的解析
sql的執行sqlsession
executor執行器
statementhandler
parameterhandler和resultsethandler
拓展邏輯(已完成)mybatis提供的拓展方法
一些補充的知識 (也是乙個開放性的章節,可能在後續再次讀到mybatis的**會有新的感悟)(補充中...)
延遲載入
目前閱讀的版本號是 3.5.1-snapshot
Sample CelShading原始碼簡析
ifndef celshading h define celshading h include sdksample.h using namespace ogre using namespace ogrebites class ogresampleclas port sample celshading...
讀HashSet原始碼
先看建構函式 public hashset public hashset int initialcapacity public hashset int initialcapacity,float loadfactor 這個構造方法不是public的,僅用於linkedhashset.hashset ...
讀LockSupport原始碼
locksupport類是其他類實現鎖和同步的基礎 basic thread blocking primitives for creating locks and other synchronization classes.讀了原始碼就會知道,這個類主要利用了unsafe類中提供的part和unpa...