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

io.quarkus.resteasy.reactive.common.deployment.QuarkusFactoryCreator Maven / Gradle / Ivy

There is a newer version: 3.15.2
Show newest version
package io.quarkus.resteasy.reactive.common.deployment;

import java.util.function.Function;

import org.jboss.resteasy.reactive.spi.BeanFactory;

import io.quarkus.arc.runtime.BeanContainer;
import io.quarkus.resteasy.reactive.common.runtime.ResteasyReactiveCommonRecorder;

public class QuarkusFactoryCreator implements Function> {

    final ResteasyReactiveCommonRecorder recorder;
    final BeanContainer beanContainer;

    public QuarkusFactoryCreator(ResteasyReactiveCommonRecorder recorder, BeanContainer beanContainer) {
        this.recorder = recorder;
        this.beanContainer = beanContainer;
    }

    @Override
    public BeanFactory apply(String s) {
        return recorder.factory(s, beanContainer);
    }
}