Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

全局过滤 #1

Closed
OnlyMyRailgun opened this issue Jun 28, 2018 · 2 comments
Closed

全局过滤 #1

OnlyMyRailgun opened this issue Jun 28, 2018 · 2 comments

Comments

@OnlyMyRailgun
Copy link

请问如何不用注解,直接进行全局过滤,应该include谁呢?

@ditclear
Copy link
Owner

定义注解只是用来作为一个切面而已,你可以在你自己的Aspcet类里自己去写自己的切面
当前定义的切面是@com.ditclear.app.aop.annotation.SingleClick * *(..)。
如果不自定义注解,pointCut可以写成public void android.view.View.OnClickListener.onClick(..),以onclick方法为切入面,不过这样估计所以点击事件都会进行防抖处理。
具体AspectJX相关的问题,建议去apectjx问问https://github.com/HujiangTechnology/gradle_plugin_android_aspectjx

@OnlyMyRailgun
Copy link
Author

@ditclear 解决了,多谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants