Package org.springframework.config.java.annotation

Examples of org.springframework.config.java.annotation.AutoBean.autowire()


        throw new BeanDefinitionStoreException("Cannot use AutoBean of interface type " + m.getReturnType()
            + ": don't know what class to instantiate; processing @AutoBean method " + m);
      }

      RootBeanDefinition bd = new RootBeanDefinition(m.getReturnType());
      bd.setAutowireMode(autoBean.autowire().value());
      configurationProcessor.registerBeanDefinition(m.getName(), bd, !Modifier.isPublic(m.getModifiers()));
      // one bean definition created
      configurationProcessor.beanDefsGenerated++;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.