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

io.quarkiverse.web.bundler.runtime.WebBundlerBuildRecorder Maven / Gradle / Ivy

There is a newer version: 1.7.3
Show newest version
package io.quarkiverse.web.bundler.runtime;

import java.util.Map;
import java.util.Set;
import java.util.function.Supplier;

import io.quarkus.runtime.annotations.Recorder;

@Recorder
public class WebBundlerBuildRecorder {

    public Supplier createContext(Map bundle) {
        return new Supplier() {
            @Override
            public Bundle.Mapping get() {
                return new Bundle.Mapping() {
                    @Override
                    public String get(String name) {
                        return bundle.get(name);
                    }

                    @Override
                    public Set names() {
                        return bundle.keySet();
                    }
                };
            }

        };
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy