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

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

There is a newer version: 1.5.2
Show newest version
package io.smallrye.beanbag;

import java.util.Map;

/**
 * A supplier that resolves all bean from a scope.
 */
final class AllBeansWithNamesResolver implements BeanSupplier> {
    private final Class type;
    private final DependencyFilter filter;

    AllBeansWithNamesResolver(final Class type, final DependencyFilter filter) {
        this.type = type;
        this.filter = filter;
    }

    public Map get(Scope scope) {
        return scope.getAllBeansWithNames(type, filter);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy