随笔分类 -  1 OO principle

摘要:什么是AOP? 通过预编译方式和运行期动态代理实现在不修改源代码的情况下给程序动态统一添加功能的一种技术。 AOP实际是GoF设计模式的延续,设计模式孜孜不倦追求的是调用者和被调用者之间的解耦, AOP可以说也是这种目标的一种实现。AOP应用范围 很明显,AOP非常适合开发J2EE容器服务器,目前JBoss 4.0正是使用AOP框架进行开发。 具体功能如下: Authentication 权限 Caching 缓存 Context passing 内容传递 Error handling 错误处理 Lazy loading 懒加载 Debugging... 阅读全文
posted @ 2012-10-07 11:53 万法自然~ 阅读(235) 评论(0) 推荐(0)
摘要:stated by Barbara Liskov in 1988 ("Data Abstraction and Hierarchy", SIGPLAN Notices, 23 May, 1988),states that a subclass should always be usable in place of its superclass without affecting callers.This principle protects the concept of concrete inheritance.For example, a Dog object shoul 阅读全文
posted @ 2012-01-16 10:39 万法自然~ 阅读(146) 评论(0) 推荐(0)
摘要:an object should be open to extension, but closed to modification. 阅读全文
posted @ 2012-01-16 10:37 万法自然~ 阅读(107) 评论(0) 推荐(0)