Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
738 B
Java
Raw Normal View History

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;
2024-10-22 12:22:08 +01:00
import lombok.extern.slf4j.Slf4j;
import stirling.software.SPDF.model.ApplicationProperties;
@Configuration
@Lazy
2024-10-22 12:22:08 +01:00
@Slf4j
public class EEAppConfig {
@Autowired ApplicationProperties applicationProperties;
2024-10-14 22:34:41 +01:00
@Autowired private LicenseKeyChecker licenseKeyChecker;
@Bean(name = "runningEE")
public boolean runningEnterpriseEdition() {
2024-10-22 12:22:08 +01:00
return licenseKeyChecker.getEnterpriseEnabledResult();
}
2024-10-22 12:22:08 +01:00
}