Class BeanUtils

java.lang.Object
ch.tocco.nice2.boot.api.bean.BeanUtils

public abstract class BeanUtils extends Object
  • Method Details

    • createContributionList

      public static <T, A extends Annotation, B> List<T> createContributionList(org.springframework.context.ApplicationContext applicationContext, Class<A> annotationClass, Class<B> beanClass, Class<T> contributionClass, BiFunction<A,BeanUtils.BeanInfo<B>,T> mapperFunction)
    • createBeanMap

      public static <K, V, A extends Annotation> Map<K,V> createBeanMap(org.springframework.context.ApplicationContext applicationContext, Class<A> annotationClass, Class<V> beanClass, Function<A,K[]> keyFunction)
    • findAnnotatedBeans

      public static <V, A extends Annotation> Stream<V> findAnnotatedBeans(org.springframework.context.ApplicationContext applicationContext, Class<A> annotationClass, Class<V> beanClass)
    • findAnnotation

      public static <A extends Annotation> A findAnnotation(Class<A> annotationClass, Object bean)