You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
806 B
33 lines
806 B
package com.fr.design.startup; |
|
|
|
import org.jetbrains.annotations.NotNull; |
|
|
|
/** |
|
* @author Starryi |
|
* @version 1.0 |
|
* Created by Starryi on 2022/1/11 |
|
*/ |
|
public class FineStartupNotificationFactory { |
|
private static final FineStartupNotificationProvider DEFAULT = Install4jStartupNotificationProvider.getInstance(); |
|
private static FineStartupNotificationProvider provider; |
|
|
|
public FineStartupNotificationFactory() { |
|
} |
|
|
|
public static FineStartupNotificationProvider getNotification() { |
|
return provider; |
|
} |
|
|
|
public static void setLogger(@NotNull FineStartupNotificationProvider provider) { |
|
FineStartupNotificationFactory.provider = provider; |
|
} |
|
|
|
public static void reset() { |
|
provider = DEFAULT; |
|
} |
|
|
|
|
|
static { |
|
provider = DEFAULT; |
|
} |
|
}
|
|
|