Join Points
程序運(yùn)行時(shí)的執(zhí)行點(diǎn),可以作為切面的地方。
? ?函數(shù)的調(diào)用,執(zhí)行
? ?獲取,設(shè)置變量
? ?類初始化
PointCut
帶條件的JoinPoints
Advice
一種Hook,要插入代碼的位置:
? Before:PointCut之前執(zhí)行
? After:PointCut之后執(zhí)行
? Around:PointCut之前,之后分別執(zhí)行


程序運(yùn)行時(shí)的執(zhí)行點(diǎn),可以作為切面的地方。
? ?函數(shù)的調(diào)用,執(zhí)行
? ?獲取,設(shè)置變量
? ?類初始化
帶條件的JoinPoints
一種Hook,要插入代碼的位置:
? Before:PointCut之前執(zhí)行
? After:PointCut之后執(zhí)行
? Around:PointCut之前,之后分別執(zhí)行