摘要: 本来想今天晚上 直接转到 以前的web项目 做测试。。。可惜在eclipse 添加 aspectj的时候 提示我不是 aspectj项目。。于是我就百度了好久,发现好多人都和我一样 , 不过我也发现了一些可以的 比如右键 AJDTtools --> convert to Aspectj Project ,可惜我的上面没有呢。。然后我就怀疑是不是我装的Spring tools的问题, 我果断卸载掉。 装了一个‘纯的’。还是没有。原来的 springTools都没有了。无奈下我胡乱翻, 不小心在 Configue --> convert to Aspectj Project ..发现了 阅读全文
posted @ 2012-12-16 23:58 Onakaumi 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 对于 call 来说,调用的连接点位于方法调用点的调用代码处对于 execution 来说,执行的连接点位于方法执行的位置。被调用者:public class Callee { public void foo() { System.out.println("clalee.foo()"); }}调用者:public class Caller { public void callFoo(Callee c) { c.foo(); } public static void main(String[] args) { new Cal... 阅读全文
posted @ 2012-12-16 21:02 Onakaumi 阅读(699) 评论(0) 推荐(0) 编辑
摘要: Inter-type declarations Inter-type declarations in AspectJ are declarations that cut across classes and their hierarchies. They may declare members that cut across multiple classes, or change the inheritance relationship between classes. Unlike advice, which operates primarily dynamically, introduct 阅读全文
posted @ 2012-12-16 21:00 Onakaumi 阅读(182) 评论(0) 推荐(0) 编辑
摘要: ssA pointcut can be built out of other pointcuts with and, or, and not (spelled &&, ||, and !). 第一个例子..public aspect AsHelloworld { // pointcut say(): execution(* cn.*.set*(..)); pointcut setName(User u, String y): call(void User.setName(String)) && target(u) && args(y); ... 阅读全文
posted @ 2012-12-16 20:17 Onakaumi 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 最近 老师说要开发一个 crm, 我们只负责权限和界面的部分, 于是我最近一直在忙权限, 其实也很简单, 我先是了解到了 RBAC (resource-based access control..好像是这么写), 我对他的了解就是基于资源的嘛..那我就开始在数据库里面建表了.综合了网上无数人的想法, 还有我的. 我建立了 五个表...(好像有点多)..User{ int id; String name; String password; }Role{ int id; String name; }Permissio... 阅读全文
posted @ 2012-12-16 19:50 Onakaumi 阅读(179) 评论(0) 推荐(0) 编辑