I Have a case in my app, that i need to use the object AccountsDao accountsDao
public class Account {
@Autowired
private AccountsDao accountsDao;
without putting an attribute @Component
to Account
class(and without any other method to mark it as a spring bean).
The app is huge, and there is an objective reason why Account
must not be a Spring Bean and must be initialized manually.
I also know that this is a single case, and the common structure is OK.
Is there a way to do that?