반응형
싱글톤 패턴 Singleton pattern
public class Singleton {
private static Singleton uniqueInstance;
private Singleton() {}
// Lazy Initailization
public static synchronzied Singleton getInstance() {
if(uniqueInstance == null) {
uniqueInstance = new Singleton();
}
return uniqueInstance;
}
}
전략 패턴 Strategy Pattern
스테이트 패턴 State Pattern
어댑터 패턴 adapter pattern
Proxy 패턴
커맨드 패턴
gmlwjd9405.github.io/2018/07/07/command-pattern.html
반응형
'Computer Science' 카테고리의 다른 글
HTTP 1.1 / HTTP 2.0 (0) | 2020.11.02 |
---|---|
MVC1 MVC2 (0) | 2020.11.02 |
URI, URL 차이 (0) | 2020.10.04 |
MSA (0) | 2020.10.04 |
Netflix zuul , Eureka Server (0) | 2020.10.04 |