How to inject object by using just annotations in parent class by using getter/setter method which declared like public final someSetter()?
As far I understand if that method would declared just public
I can do like this…
@Override
@Autowired
public void setSomeObject(SomeClass someObject) {...}
But method declared like final and I cannot override it.
Anyone have some ideas?
If you can’t modify the parent, you may be out of luck if you can only use annotations.
You could create a different setter, annotate it, and call the parent setter, though.