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
- gradle
- d3js
- style
- vuex
- fastapi
- Vue3
- InteliJ
- post
- react
- ubuntu
- NextJS13
- Vue
- Python
- Spring
- loguru
- Logging
- Shell
- Java
- vitejs
- NextJS
- fetch
- svelte
- npm
- Test
- nodejs
- JUnit
- springboot
- 오라클
- sveltekit
- EUREKA
Archives
- Today
- Total
양군의 행복한 이야기
singleton 페턴 본문
public class GlobalValue {
private static GlobalValue gv;
static {
gv = new GlobalValue();
}
public static GlobalValue getInstance(){
return gv;
}
}
어디서나 하나의 객체를 얻을수 있다.
내맘대로 코드..
private static GlobalValue gv;
static {
gv = new GlobalValue();
}
public static GlobalValue getInstance(){
return gv;
}
}
어디서나 하나의 객체를 얻을수 있다.
내맘대로 코드..