2024-09-13 16:42:38 +01:00
|
|
|
package stirling.software.SPDF.EE;
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
2024-10-22 12:22:08 +01:00
|
|
|
import lombok.extern.slf4j.Slf4j;
|
2024-09-13 16:42:38 +01:00
|
|
|
import stirling.software.SPDF.model.ApplicationProperties;
|
|
|
|
|
|
|
|
@Configuration
|
|
|
|
@Lazy
|
2024-10-22 12:22:08 +01:00
|
|
|
@Slf4j
|
2024-09-13 16:42:38 +01:00
|
|
|
public class EEAppConfig {
|
|
|
|
|
|
|
|
@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-23 07:17:40 -04:00
|
|
|
return licenseKeyChecker.getEnterpriseEnabledResult();
|
2024-09-13 16:42:38 +01:00
|
|
|
}
|
2024-10-23 07:17:40 -04:00
|
|
|
}
|