I have a class named Bar with the following annotation:
@Configurable(autowire = Autowire.BY_TYPE)
On a private member I have the following annotation:
The following links provide alternative solutions for such scenarios:
The first link talks about adding to Foo:
@Component
@Scope(proxyMode = ScopedProxyMode.TARGET_CLASS, value = "prototype")
class Foo
Which will cause a new instance every call.