Uses of Interface
io.smallrye.beanbag.BeanSupplier
-
Uses of BeanSupplier in io.smallrye.beanbag
Methods in io.smallrye.beanbag that return BeanSupplierModifier and TypeMethodDescriptionstatic <T> BeanSupplier<T>BeanSupplier.of(T instance) Get a bean supplier which always returns the given value.static <T> BeanSupplier<T>BeanSupplier.resolving(Class<T> type, String name, boolean optional, DependencyFilter filter) Get a bean supplier whose value is the result of resolution of a bean with the given parameters.static <T> BeanSupplier<List<T>>BeanSupplier.resolvingAll(Class<T> type, String name, DependencyFilter filter) Get a bean supplier whose value is a list representing the result of resolving all the beans with the given parameters.static <T> BeanSupplier<Map<String,T>> BeanSupplier.resolvingAllByName(Class<T> type, DependencyFilter filter) Get a bean supplier whose value is a map representing the result of resolving all the beans with the given parameters.default <U> BeanSupplier<U>Get a bean supplier which applies the given transformation function to the result of this supplier.Methods in io.smallrye.beanbag with parameters of type BeanSupplierModifier and TypeMethodDescriptionBeanBag.SupplierBuilder.addConstructorArgument(BeanSupplier<?> supplier) Add a general constructor argument injection.BeanBag.SupplierBuilder.injectField(Field field, BeanSupplier<?> supplier) Add a general field injection.BeanBag.SupplierBuilder.injectMethod(Method method, BeanSupplier<?> supplier) Add a general method injection.BeanBag.BeanBuilder.setSupplier(BeanSupplier<T> supplier) Set the supplier for this bean.