Package org.jtester.annotations

Examples of org.jtester.annotations.SpringBeanFrom


   */
  public static void registerSpringBeanFromField(final DefaultListableBeanFactory beanFactory, Class testedClazz) {
    Set<Field> beanFields = getFieldsAnnotatedWith(testedClazz, SpringBeanFrom.class);

    for (Field beanField : beanFields) {
      SpringBeanFrom beanFor = beanField.getAnnotation(SpringBeanFrom.class);
      String fieldName = beanField.getName();
      String beanName = beanFor.value();
      if (StringHelper.isBlankOrNull(beanName)) {
        beanName = fieldName;
      }
      registerProxyBeanDefinition(beanFactory, beanName, fieldName);
    }
View Full Code Here

TOP

Related Classes of org.jtester.annotations.SpringBeanFrom

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.