摘要:
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 阅读全文
摘要:
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); ... 阅读全文
摘要:
最近 老师说要开发一个 crm, 我们只负责权限和界面的部分, 于是我最近一直在忙权限, 其实也很简单, 我先是了解到了 RBAC (resource-based access control..好像是这么写), 我对他的了解就是基于资源的嘛..那我就开始在数据库里面建表了.综合了网上无数人的想法, 还有我的. 我建立了 五个表...(好像有点多)..User{ int id; String name; String password; }Role{ int id; String name; }Permissio... 阅读全文