Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- builder pattern
- click.native
- camel case error
- Python
- mount point
- Singleton pattern
- design pattern
- v-show vs v-if
- executable jar
- Factory Method Pattern
- kebab case
- MVVM
- maven
- ubuntu
- data
- v-model vs v-bind
- java
- vuejs
- prototype pattern
- Linux
- zen of python
- $event.target.value
- IPv6
- Spring Boot
Archives
- Today
- Total
목록Singleton pattern (1)
Eddie's Blog
[design pattern] Singleton Pattern
유형: 생성자 패턴 클래스의 인스턴스가 하나임을 보장하고 전역적 접근을 허용하게 한다. 1. static 키워드를 통한 instance 즉시 생성 public class EagerInitializedSingleton { private static final EagerInitializedSingleton instance = new EagerInitializedSingleton(); public static EagerInitializedSingleton getInstance() { return instance; } private EagerInitializedSingleton() {} /* more methods */ } public class StaticBlockSingleton { private stati..
programmings
2019. 3. 28. 21:46