首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > ASP > AspectJ的追踪方法在Android的例子

AspectJ的追踪方法在Android的例子

  • 资源大小:288.52 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: android aspectj 追踪 方法 例子

资 源 简 介

This project is an example of how to enable method tracing (which cuts across all classes) in Android. Adding Aspect to Android Programming AspectJ with Android AspectJ is the defacto choice for AOP program. So far I did not see any one trying AOP concept in Android. However, I did read one blog mentioning, it should be possible, hence I tried it. AspectJ puts in pointcut across code and can execute advices around those pointcuts. The beautify of this is once you compile your java source, you add these pointcuts and advices to your program by injecting them in the byte code (of already generated class files). Knowing this I knew aspectJ can be used in Android, as dex relies on .class files. Stage 1- Let Java compile java to .class files Stage 2- Let AspectJ compiler inject point cuts and advices to the .class files Stage 3- Let Dex take these new class files and create .dex file. Read more here - http://blog.pun

文 件 列 表

android-aspectj
.classpath
.project
AndroidManifest.xml
bin
build.properties
build.xml
default.properties
gen
libs
local.properties
res
src
trace.lst

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.220326s