1.

What Are The Various Actions Performed When An Application Context Is Created?

Answer»

Here are 5 steps:

  1. Read BEAN file XML (or process annotations). Build internal "map" of beans and determine dependency tree.
  2. Post process the definitions - e.g. resolve ${VARIABLES}
  3. Allocate objects - dependency inject constructor args and invoke setter.
  4. Perform any initialisation - 3 APPROACHS: @PostConstruct, init-method, InitializingBean
  5. Bean post-processors - e.g. wrap with proxy, @Required

Here are 5 steps:



Discussion

No Comment Found