![JAR search and dependency download from the Maven repository](/logo.png)
io.smallrye.beanbag.BeanResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smallrye-beanbag Show documentation
Show all versions of smallrye-beanbag Show documentation
A trivial programmatic bean container implementation
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