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

io.smallrye.beanbag.BeanResolver Maven / Gradle / Ivy

The newest version!
package io.smallrye.beanbag;

/**
 * A supplier that resolves a bean from a scope.
 */
final class BeanResolver implements BeanSupplier {
    private final Class type;
    private final String name;
    private final boolean optional;
    private final DependencyFilter filter;

    BeanResolver(final Class type, final String name, final boolean optional, final DependencyFilter filter) {
        this.type = type;
        this.name = name;
        this.optional = optional;
        this.filter = filter;
    }

    public T get(Scope scope) {
        return scope.getBean(type, name, optional, filter);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy