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

org.richfaces.javascript.LibraryFunctionImplementation Maven / Gradle / Ivy

The newest version!
package org.richfaces.javascript;

import java.util.Collections;

import org.richfaces.resource.ResourceKey;

import com.google.common.collect.ImmutableList;

final class LibraryFunctionImplementation implements LibraryFunction {
    private final Iterable library;
    private final String functionName;

    LibraryFunctionImplementation(String functionName, Iterable dependencies) {
        this.library = ImmutableList.copyOf(dependencies);
        this.functionName = functionName;
    }

    LibraryFunctionImplementation(String functionName, String resource, String library) {
        this.library = Collections.singleton(ResourceKey.create(resource, library));
        this.functionName = functionName;
    }

    public Iterable getResources() {
        return library;
    }

    public String getName() {
        return functionName;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy