自动化立体仓库 - WCS系统
*
lsh
2025-01-15 a25037d44427756e6ab9dd0ed1360425d660362a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.zy.system.entity.license;
 
import de.schlichtherle.license.LicenseManager;
import de.schlichtherle.license.LicenseParam;
 
public class LicenseManagerHolder {
 
    private static volatile LicenseManager LICENSE_MANAGER;
 
    public static LicenseManager getInstance(LicenseParam param) {
        if (LICENSE_MANAGER == null) {
            synchronized (LicenseManagerHolder.class) {
                if (LICENSE_MANAGER == null) {
                    LICENSE_MANAGER = new CustomLicenseManager(param);
                }
            }
        }
 
        return LICENSE_MANAGER;
    }
 
}