12131415161718
public class EmailViewProvider implements ApplicationContextAware { private ApplicationContext applicationContext; public EmailView get(Email email) { return new EmailView(applicationContext.getBean(EmailPresenter.class), email); }