FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaCodeAcc/src/designpattern/facade/FacadeClient.java at master · kylez7/JavaCodeAcc · GitHub
kylez7
/
JavaCodeAcc
Public
forked from
echoTheLiar/JavaCodeAcc
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaCodeAcc
/
src
/
designpattern
/
facade
/
FacadeClient.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
20 lines (18 loc) · 666 Bytes
Breadcrumbs
JavaCodeAcc
/
src
/
designpattern
/
facade
/
FacadeClient.java
Copy path
File metadata and controls
20 lines (18 loc) · 666 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package
designpattern
.
facade
;
/**
* 外观类客户端
*
* @author liu yuning
*
*/
public
class
FacadeClient
{
public
static
void
main
(
String
[]
args
) {
// 由于Facade的作用,客户端可以根本不知道四个子系统的存在
// 启发:维护一个遗留的大型系统时,可能这个系统已经非常难以维护和扩展了,此时可以
// 为新系统开发一个外观Facade类,来提供设计粗糙或高度复杂的遗留代码的比较清晰简单
// 的接口,让新系统与Facade对象交互,Facade与遗留代码交互所有复杂的工作
Facade
facade
=
new
Facade
();
facade
.
methodA
();
facade
.
methodB
();
}
}
Back
|
FazBrowse Home
|
New Git URL