Class JavaScriptPackageResource

    • Constructor Detail

      • JavaScriptPackageResource

        public JavaScriptPackageResource​(Class<?> scope,
                                         String name,
                                         Locale locale,
                                         String style,
                                         String variation)
        Construct.
        Parameters:
        scope - This argument will be used to get the class loader for loading the package resource, and to determine what package it is in
        name - The relative path to the resource
        locale - The locale of the resource
        style - The style of the resource
        variation - The component's variation (of the style)
    • Method Detail

      • getCompressor

        protected IJavaScriptCompressor getCompressor()
        Gets the IJavaScriptCompressor to be used. By default returns the configured compressor on application level, but can be overriden by the user application to provide compressor specific to the resource.
        Overrides:
        getCompressor in class PackageResource
        Returns:
        the configured application level JavaScript compressor. May be null.