2024-09-13 16:42:38 +01:00
|
|
|
package stirling.software.SPDF.EE;
|
|
|
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
import org.springframework.context.annotation.Lazy;
|
|
|
|
|
|
|
|
import stirling.software.SPDF.model.ApplicationProperties;
|
|
|
|
|
|
|
|
@Configuration
|
|
|
|
@Lazy
|
|
|
|
public class EEAppConfig {
|
|
|
|
|
|
|
|
private static final Logger logger = LoggerFactory.getLogger(EEAppConfig.class);
|
|
|
|
|
|
|
|
@Autowired ApplicationProperties applicationProperties;
|
|
|
|
|
2024-10-14 22:34:41 +01:00
|
|
|
@Autowired private LicenseKeyChecker licenseKeyChecker;
|
|
|
|
|
|
|
|
@Bean(name = "runningEE")
|
2024-09-13 16:42:38 +01:00
|
|
|
public boolean runningEnterpriseEdition() {
|
2024-10-14 22:34:41 +01:00
|
|
|
return licenseKeyChecker.getEnterpriseEnabledResult();
|
2024-09-13 16:42:38 +01:00
|
|
|
}
|
|
|
|
}
|