Class ContentResourcePrefetcher
- java.lang.Object
-
- com.atlassian.confluence.impl.content.render.prefetch.ContentResourcePrefetcher
-
public class ContentResourcePrefetcher extends Object
A utility for pre-fetching and caching any resource identifier found in a piece of content. This is purely a performance optimization that should be invoked, if at all, before that content is rendered.- Since:
- 5.10
-
-
Constructor Summary
Constructors Constructor Description ContentResourcePrefetcher(ResourceIdentifierExtractor resourceIdentifierExtractor, DarkFeaturesManager darkFeaturesManager, Iterable<ResourcePrefetcher> prefetchers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEnabled()
void
prefetchContentResources(BodyContent bodyContent, ConversionContext conversionContext)
-
-
-
Constructor Detail
-
ContentResourcePrefetcher
public ContentResourcePrefetcher(ResourceIdentifierExtractor resourceIdentifierExtractor, DarkFeaturesManager darkFeaturesManager, Iterable<ResourcePrefetcher> prefetchers)
-
-
Method Detail
-
prefetchContentResources
public void prefetchContentResources(BodyContent bodyContent, ConversionContext conversionContext)
-
isEnabled
public boolean isEnabled()
-
-