01 | private synchronized static void createInstance(){ |
02 | if (INSTANCE == null ){ |
03 | INSTANCE = new StockCountMRG(); |
04 | } |
05 | } |
06 |
07 | public static StockCountMRG getInstance(){ |
08 | createInstance(); |
09 | return INSTANCE; |
10 | } |
No comments:
Post a Comment