Tag Archives: autowired

Spring autowired prototype scope using JSR 330 Provider

This example shows how to create an autowired bean of prototype scope using JSR 330 Provider API. PrototypeExample.java (main class) PrototypeService.java (service class) spring-config.xml (spring config xml) Output Though the bean is annotated as prototype, whenever an instance is requested, … Continue reading

Posted in java | Tagged , , , | 3 Comments