What are the disadvantages of auto wiring?

devquora
devquora

Posted On: Feb 22, 2018

 

Following are the disadvantages of auto wiring:
  • Overriding possibility – Despite using auto wiring one can still use dependencies like <property> and <constructor-arg> settings, which always can override auto wiring.
  • Primitive data types − one cannot auto wire some simple properties like classes, strings, and primitives etc.
  • Confusing nature – Auto wiring is less exact than explicit wiring and thus it is not preferred if explicit wiring can be used.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Spring Interview Questions

    What are the features/ characteristics of spring?

    The important features of spring are as follows:Lightweight: Considering transparency and size, spring is lightweight..

    Spring Interview Questions

    How many types of modules are there in spring? Name them.

    There are around twenty modules, which can be categorized into Core Container, Web, Data Access or Integration, Aspect ..

    Spring Interview Questions

    What do you mean by Spring Java Based Configuration?

    Spring configuration files are XML files. These files contain the information of classes and describe how these classes..