How to create Spring Beans Using Spring FactoryBean

In Spring you can also Create and Configure of Spring Bean using Spring’s FactoryBean . A factory bean in Spring serves as a factory for creating other beans within the Spring IoC container. In Java terms we can say that, a factory bean is very similar to a factory method (Java Factory Pattern), but here it is Spring specific bean which can be identified by the Spring IoC container during bean construction. [Read more…]