All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.primefaces.extensions.optimizerplugin.util.ResourcesSetJsAdapter Maven / Gradle / Ivy

There is a newer version: 2.6.5
Show newest version
/*
 * Copyright 2011-2015 PrimeFaces Extensions
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * $Id$
 */

package org.primefaces.extensions.optimizerplugin.util;

import com.google.javascript.jscomp.CompilationLevel;
import com.google.javascript.jscomp.WarningLevel;
import org.primefaces.extensions.optimizerplugin.model.Aggregation;
import org.primefaces.extensions.optimizerplugin.model.SourceMap;

import java.io.File;
import java.util.Set;

/**
 * Container class containing all needed infos for a resource set describing JavaScript files..
 *
 * @author Oleg Varaksin ([email protected])
 */
public class ResourcesSetJsAdapter extends ResourcesSetAdapter {

    private CompilationLevel compilationLevel;

    private WarningLevel warningLevel;

    private SourceMap sourceMap;

    public ResourcesSetJsAdapter(File inputDir, Set files, Aggregation aggregation, CompilationLevel compilationLevel,
                                 WarningLevel warningLevel, SourceMap sourceMap, String encoding, boolean failOnWarning,
                                 String suffix) {
        super(inputDir, files, aggregation, encoding, failOnWarning, suffix);
        this.compilationLevel = compilationLevel;
        this.warningLevel = warningLevel;
        this.sourceMap = sourceMap;
    }

    public CompilationLevel getCompilationLevel() {
        return compilationLevel;
    }

    public WarningLevel getWarningLevel() {
        return warningLevel;
    }

    public SourceMap getSourceMap() {
        return sourceMap;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy