学习方面J
我已阅读以下位置的文档。也许我太笨了,但我看不到太多可以想象的有用的例子,也没有太多留在我的脑海里。
http://eclipse.org/aspectj
http://www.ibm.com/developerworks/java/library /j-aopwork8/index.html
有谁有任何好的和简单的 AspectJ 在线入门文档吗?一个我可以运行和使用的 Eclipse 项目示例将是超级棒的!
I have read the documents in the following locations. Maybe I'm too dumb but I can't see too many useful examples that I can visualize and no much stay in my mind.
http://eclipse.org/aspectj
http://www.ibm.com/developerworks/java/library/j-aopwork8/index.html
Does anyone have any good and simple AspectJ getting start doc online? An eclipse project sample that I can run and play around with would be super!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我编写了一个示例,向您展示 AspectJ 如何使用
@javax.inject.Inject
此处我还尝试使用备忘单来简化 AspectJ 此处。
如果您需要了解理论,AspectJ in Action 非常好。对于在线资源,Spring框架有一个很好的参考文档,您可以阅读这里。
我希望它有帮助!
I have written an example that shows you how AspectJ can work with annotations like
@javax.inject.Inject
hereI have also tried to simplify AspectJ with a cheat sheet here.
If you need to understand the theory, the AspectJ in Action is very good. For online resources, the Spring framework has a good reference document you can read here.
I hope it helps!
AspectJ 实际应用可能会有所帮助。它有一些不寻常的用例,将帮助您超越日志记录“hello world”阶段。
您还可以从 Spring 开始实际使用。
AspectJ In Action might help. It's got some unusual use cases that will help to get you beyond the logging "hello world" stage.
You can also get your feet wet with real usage by starting with Spring.
这是 AspectJ 中 GoF 设计模式实现的链接(它们尚未针对 AspectJ 5 进行更新,但它们仍然非常相关)。它们提供了一些在实现方面时使用的很好的模式示例:
http://hannemann.pbworks.com/Design+模式
This is a link to an implementation of the GoF design patterns in AspectJ (they have not been updated for AspectJ 5, but they are still very relevant). They provide some great examples of patterns to use when implementing aspects:
http://hannemann.pbworks.com/Design+Patterns
Spring Roo 是学习 AspectJ 的绝佳方法,因为它以项目方式设置了一切。它还生成 AspectJ ITD,我发现从中学习非常有帮助。
《AspectJ in Action》一书非常棒。
Spring Roo is an excellent way to learn AspectJ since it sets everything up project wise. It also generates AspectJ ITDs that I found very helpful to learn from.
The AspectJ in Action book is excellent.