V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ychost
V2EX  ›  Java

🎉 FastAop v1.0.1 正式发布

  •  
  •   ychost · 2021-04-14 11:43:30 +08:00 · 2005 次点击
    这是一个创建于 1079 天前的主题,其中的信息可能已经有所发展或是发生改变。

    简介

    FastAop 是一款基于 Java Annotation Processing 的轻量级 AOP 框架,其原理和 Lombok 类似,支持环绕切入模式,使用起来非常的方便,基于此项目可以生成任何你想要的模板代码提高日常编码体验和效率,此次更新主要是支持了 Around 切面模式。

    特性

    • 📦 开箱即用,适用于任意项目,无依赖负担
    • 🚀 基于 Java Annotation Processing,运行时无性能损耗
    • ⚡️ 兼容 private/protected/static 等各种修饰符的方法

    使用

    求个 star,欢迎大家提提 issue,一起交流~

    7 条回复    2021-04-15 13:39:16 +08:00
    catchexception
        1
    catchexception  
       2021-04-14 12:37:05 +08:00
    动态代理是怎么实现的? JDK Native Interface or CGLIB ?
    ychost
        2
    ychost  
    OP
       2021-04-14 13:51:14 +08:00
    @catchexception 没用动态代理,用的 Annotation Processing,编译的时候织入静态代码,和 Lombok 一样
    Betsy
        3
    Betsy  
       2021-04-15 09:08:46 +08:00 via iPhone
    支持 jdk11 吗?
    ychost
        4
    ychost  
    OP
       2021-04-15 09:26:26 +08:00
    @Betsy  暂时只支持 jdk8,后面会逐步支持
    lostSoul
        5
    lostSoul  
       2021-04-15 10:23:22 +08:00   ❤️ 1
    @ychost 看起来好像很骚 star 一下先
    xiaoxinshiwo
        6
    xiaoxinshiwo  
       2021-04-15 10:54:43 +08:00
    写个 starter 也挺好用
    ychost
        7
    ychost  
    OP
       2021-04-15 13:39:16 +08:00
    @xiaoxinshiwo 很有意思的,可以干很多黑科技工作
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   955 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 21:26 · PVG 05:26 · LAX 14:26 · JFK 17:26
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.