@Service
public class ArticleCounterServiceImpl implements ArticleCounterService {
...
@Autowired
@Qualifier("ArticleCounterService")
private ArticleCounterService articleCounterService;
@Configuration
@ComponentScan({
"com.cleverlance.package.for.scan"
})
public class PortletContext {
...
AnnotationConfigApplicationContext applicationContext =
new AnnotationConfigApplicationContext(SpringContext.class);
CalculationService calculationService =
applicationContext.getBean(CalculationService.class);
@Bean(name = "")
public LoanService standardLoanService() {
return new StandardLoanService();
}