Class 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
    • 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()
        Specified by:
        get in interface com.google.common.base.Supplier<com.atlassian.plugin.webresource.cdn.CDNStrategy>
        Specified by:
        get in interface Supplier<com.atlassian.plugin.webresource.cdn.CDNStrategy>
      • onRemoteSiteDarkFeatureEvent

        @EventListener
        public void onRemoteSiteDarkFeatureEvent​(ClusterEventWrapper wrappedEvent)