Create the SecurityManager instance based on the configuration (using Shiro’s Factory concept that represents the Factory Method design pattern).
根据配置创建SecurityManager实例(使用Shiro的工厂概念,它表述了 工厂方法设计模式);
What's the right way to use the Factory method design pattern?
使用工厂方法设计模式的正确方法是什么?
It describes two kinds of design patterns in COM in detail: Factory Method pattern and Proxy pattern, and tells how to realize the former.
接着具体讲述了组件对象模型中使用的两种设计模式:工厂方法模式和代理模式。
应用推荐