You've already forked FrameTour-BE
							
							名称修改
This commit is contained in:
		| @@ -33,7 +33,7 @@ public class NotifyFactory { | ||||
|         namedNotifier.put(name, adapter); | ||||
|     } | ||||
|  | ||||
|     public static INotifyAdapter to(String name) { | ||||
|     public static INotifyAdapter via(String name) { | ||||
|         INotifyAdapter adapter = namedNotifier.get(name); | ||||
|         if (adapter == null) { | ||||
|             throw new RuntimeException("未定义的通知方式:"+name); | ||||
| @@ -41,7 +41,7 @@ public class NotifyFactory { | ||||
|         return adapter; | ||||
|     } | ||||
|  | ||||
|     public static INotifyAdapter to() { | ||||
|     public static INotifyAdapter via() { | ||||
|         if (defaultNotifier == null) { | ||||
|             throw new RuntimeException("未定义默认通知方式"); | ||||
|         } | ||||
| @@ -49,6 +49,6 @@ public class NotifyFactory { | ||||
|     } | ||||
|  | ||||
|     public static void setDefault(String defaultStorage) { | ||||
|         NotifyFactory.defaultNotifier = to(defaultStorage); | ||||
|         NotifyFactory.defaultNotifier = via(defaultStorage); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user