Android의 AspectJ : pointcut call (* Activity.onCreate (..))이 Activity.onCreate () 호출을 선택하지 않습니다


내 Android 프로젝트에서 AspectJ를 사용하고 있으며 에 대한 모든 호출을 포착하는 pointcut 을 작성하고 싶습니다. 내 활동의 onCreate () onDestroy () . 저는 AspectJ를 처음 접했기 때문에 아마도 여기에 뭔가 빠졌지 만 왜 이것이 :
pointcut createActivity (Activity a) : target (a) && execution (* Activity.onCreate (..)) && within (com.test .activities .. *);
작동 및이 :
target (a) && call (* Activity.onCreate (..)) && within (com.test.activities .. *);
doesn 작동하지 않습니까?

7
задан futtetennista 16 June 2011 в 08:53
поделиться