Spring JavaConfig Reference Guide - Spring Web Services - Parent ...
Spring JavaConfig Reference Guide - Spring Web Services - Parent ...
Spring JavaConfig Reference Guide - Spring Web Services - Parent ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Creating and using bean definitions4.3.2.2. String-based accessBeans may be accessed via the traditional string-based getBean() API as well. Of course this is not type-safeand requires casting, but avoids any potential ambiguity entirely:<strong>JavaConfig</strong>ApplicationContext context = new <strong>JavaConfig</strong>ApplicationContext(...);Service service = (Service) context.getBean("myService");(1.0.0.m4-SNAPSHOT)