Class LicenseBasedCachingEnterpriseFeatureFlag

  • All Implemented Interfaces:
    EnterpriseFeatureFlag

    public class LicenseBasedCachingEnterpriseFeatureFlag
    extends Object
    implements EnterpriseFeatureFlag
    Allow access to enterprise features for DC licenses. Result is cached until licenses are changed.
    Since:
    7.5.0
    • Constructor Detail

      • LicenseBasedCachingEnterpriseFeatureFlag

        public LicenseBasedCachingEnterpriseFeatureFlag​(LicenseService licenseService,
                                                        com.atlassian.event.api.EventPublisher eventPublisher)
    • Method Detail

      • register

        @PostConstruct
        public void register()
      • unregister

        @PreDestroy
        public void unregister()
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface EnterpriseFeatureFlag
        Returns:
        true if Enterprise features should be available to current instance
      • onLicenseUpdatedEvent

        @EventListener
        public void onLicenseUpdatedEvent​(LicenceUpdatedEvent ignored)