| 程序包 | 说明 |
|---|---|
| net.congyh.designpatterns.factory.simple |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ImplA
Created by congyihao on 16-10-30.
|
class |
ImplB
Created by congyihao on 16-10-30.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Api |
Factory.createApi()
使用配置文件+反射机制创建具体的实现类
|
static Api |
Factory.createApi(int condition)
负责创建具体Api对象的方法
|
Copyright © 2016. All rights reserved.