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

io.quarkus.funqy.runtime.ParameterInjector Maven / Gradle / Ivy

package io.quarkus.funqy.runtime;

import java.lang.annotation.Annotation;
import java.lang.reflect.Type;

import io.quarkus.funqy.Context;

public class ParameterInjector {
    public static ValueInjector createInjector(Type type, Class clz, Annotation[] annotations) {
        if (annotations != null) {
            for (Annotation ann : annotations) {
                if (ann.annotationType().equals(Context.class)) {
                    return new ContextValueInjector(clz);
                }
            }
        }
        return new InputValueInjector(clz);

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy