package com.atlassian.stash.internal.plugin;

import com.atlassian.plugin.webresource.*;
import com.atlassian.plugin.webresource.assembler.LegacyPageBuilderService;
import com.atlassian.stash.internal.annotation.Profiled;
import com.atlassian.webresource.api.assembler.WebResourceAssemblerFactory;

import java.io.Writer;

@SuppressWarnings("deprecation")
public class ProfiledWebResourceManager extends WebResourceManagerImpl {

    public ProfiledWebResourceManager(WebResourceAssemblerFactory webResourceAssemblerFactory,
                                      LegacyPageBuilderService pageBuilderService,
                                      PluginResourceLocator pluginResourceLocator,
                                      WebResourceIntegration webResourceIntegration,
                                      WebResourceUrlProvider webResourceUrlProvider,
                                      ResourceBatchingConfiguration batchingConfiguration,
                                      ResourceDependencyResolver dependencyResolver) {
        super(webResourceAssemblerFactory, pageBuilderService, pluginResourceLocator, webResourceIntegration,
                webResourceUrlProvider, batchingConfiguration, dependencyResolver);
    }

    @Override
    @Profiled
    public void includeResources(Writer writer, UrlMode urlMode) {
        super.includeResources(writer, urlMode);
    }

}
