integration aspectwerkz

本文探讨了AspectWerkz与AspectJ在面向切面编程中的不同侧重点,前者强调与J2EE环境的紧密集成及加载时间编织,后者则更注重静态编译期的编织、运行时性能及工具支持。文章还介绍了AspectWerkz的配置方式及如何通过编程方式动态部署通知。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

AspectWerkz 主要关注加载时间编织在 J2EE 应用程序环境中的紧密集成,而 AspectJ 更多地关注(静态)编译和编织、运行时性能和工具支持

work appoint pointcut advice
config:
    in src:
        Java 5.0 annotation
        Javadoc mode annotation
    xml config file:aop.xml or aspectwerkz.xml in src or classpath
src:
    Object o=Proxy.newInstance(class,constructor argumentTypes,constructor argumentValues,useCache,makeAdvisable)
        if makeAdvisable=true,implement Advisable
        :::be prepared for programmatic, runtime, per instance hot deployement of advice
    ((Advisable)o).aw_addAdvice(pointcut,advice)
    pointcut is string expressionInfo like "execution(* *(..))":package namespace.method(pargument):proxy all method
    advice must implenet invoke(JoinPoint jp),jp method info and so on

in my osgi framework not work,o is not instanceof Advisable

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值