I am doing my current project on Spring and I have debate.
Right now I am in the stage of writing the interfaces and the abstraction level.
I am used to write those classes in the old fasion as we all know( declase java class as abstract/interface):
I saw in Spring that you can also declare an abstraction via xml.
public abstract class Superclass implements SuperInterface
and then initiate it this way:
<bean id="Superclass " abstract="true">
Same goes for overriding methods.
<bean id="MyClass " parent="Superclass "
I find it little confusing.
what would be the cons and pros of doing it the xml way or the old an fasion way or mybe I should mix them? but when it will be good/effective to do so?