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 | 31 |
Tags
- java
- v-show vs v-if
- $event.target.value
- Singleton pattern
- v-model vs v-bind
- design pattern
- builder pattern
- camel case error
- MVVM
- Python
- Linux
- IPv6
- vuejs
- click.native
- maven
- executable jar
- prototype pattern
- zen of python
- mount point
- data
- Factory Method Pattern
- kebab case
- Spring Boot
- ubuntu
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