Class ConfluenceCDNStrategyFactory
- java.lang.Object
-
- com.atlassian.confluence.impl.webresource.ConfluenceCDNStrategyFactory
-
- All Implemented Interfaces:
com.google.common.base.Supplier<com.atlassian.plugin.webresource.cdn.CDNStrategy>
,Supplier<com.atlassian.plugin.webresource.cdn.CDNStrategy>
public class ConfluenceCDNStrategyFactory extends Object implements com.google.common.base.Supplier<com.atlassian.plugin.webresource.cdn.CDNStrategy>
Switch for CDN support.- Since:
- 5.6
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATLASSIAN_CDN_FEATURE_FLAG
-
Constructor Summary
Constructors Constructor Description ConfluenceCDNStrategyFactory(DarkFeaturesManager darkFeaturesManager, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.plugin.webresource.cdn.CdnStrategyProvider cdnStrategyProvider, EnterpriseFeatureFlag enterpriseFeatureFlag)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
com.atlassian.plugin.webresource.cdn.CDNStrategy
get()
void
init()
void
onPluginFrameworkStarted(PluginFrameworkStartedEvent event)
void
onRemoteSiteDarkFeatureEvent(ClusterEventWrapper wrappedEvent)
void
onSiteDarkFeatureDisabled(SiteDarkFeatureDisabledEvent event)
void
onSiteDarkFeatureEnabled(SiteDarkFeatureEnabledEvent event)
-
-
-
Field Detail
-
ATLASSIAN_CDN_FEATURE_FLAG
public static final String ATLASSIAN_CDN_FEATURE_FLAG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConfluenceCDNStrategyFactory
public ConfluenceCDNStrategyFactory(DarkFeaturesManager darkFeaturesManager, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.plugin.webresource.cdn.CdnStrategyProvider cdnStrategyProvider, EnterpriseFeatureFlag enterpriseFeatureFlag)
-
-
Method Detail
-
init
@PostConstruct public void init()
-
destroy
@PreDestroy public void destroy()
-
get
public com.atlassian.plugin.webresource.cdn.CDNStrategy get()
-
onPluginFrameworkStarted
@EventListener public void onPluginFrameworkStarted(PluginFrameworkStartedEvent event)
-
onSiteDarkFeatureEnabled
@EventListener public void onSiteDarkFeatureEnabled(SiteDarkFeatureEnabledEvent event)
-
onSiteDarkFeatureDisabled
@EventListener public void onSiteDarkFeatureDisabled(SiteDarkFeatureDisabledEvent event)
-
onRemoteSiteDarkFeatureEvent
@EventListener public void onRemoteSiteDarkFeatureEvent(ClusterEventWrapper wrappedEvent)
-
-