Class LicenseBasedCachingEnterpriseFeatureFlag
- java.lang.Object
-
- com.atlassian.confluence.internal.license.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 Summary
Constructors Constructor Description LicenseBasedCachingEnterpriseFeatureFlag(LicenseService licenseService, com.atlassian.event.api.EventPublisher eventPublisher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEnabled()
void
onLicenseUpdatedEvent(LicenceUpdatedEvent ignored)
void
register()
void
unregister()
-
-
-
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 interfaceEnterpriseFeatureFlag
- Returns:
- true if Enterprise features should be available to current instance
-
onLicenseUpdatedEvent
@EventListener public void onLicenseUpdatedEvent(LicenceUpdatedEvent ignored)
-
-