Hi,
I'm trying to inject String using @Value into @Configurable class. Class itself is a JSF Converter, and therefore is not Spring managed. That's why I'm using @Configurable. Trick is, can I do that injection without defining prototype bean in my XML? Without prototype I get:
With prototype everything works as expected. My problem is: why I have to define this prototype when injecting using @Value, while when injecting using @Inject or @Autowire can do without prototype? Is it a feature or a bug? My prototype doesn't do anything interesting:Code:org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'pl.wroc.jug.jb.web.converter.DateConverter' is defined
Best regardsCode:<bean class="pl.wroc.jug.jb.web.converter.DateConverter" scope="prototype"/>
Jacek Bilski


Reply With Quote