@@ -0,0 +1,341 @@
+package com.yf.designPattern.singleton;%0A%0Apublic class LazyUnSafeSingleton %7B%0A%09private static LazyUnSafeSingleton singleton;%0A%0A%09/**%0A%09 * %E7%A7%81%E6%9C%89%E6%9E%84%E9%80%A0%E5%87%BD%E6%95%B0%EF%BC%8C%E4%B8%8D%E8%AE%A9new%E5%87%BA%E6%9D%A5%0A%09 */%0A%09private LazyUnSafeSingleton() %7B%0A%09%7D%0A%0A%09public static LazyUnSafeSingleton getSingletion() %7B%0A%09%09if (singleton == null) %7B%0A%09%09%09singleton = new LazyUnSafeSingleton();%0A%09%09%7D%0A%09%09return singleton;%0A%09%7D%0A%7D%0A

add singleton pattern