Hi All,
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.Code:public abstract class Superclass implements SuperInterface { ...}
and then initiate it this way:Code:<bean id="Superclass " abstract="true"> ... /> </bean>
Same goes for overriding methods.Code:<bean id="MyClass " parent="Superclass " class="com.spring"> .. </bean>
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?
Thanks,
ray.


Reply With Quote
