Announcement Announcement Module
Collapse
No announcement yet.
About idref tag Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • About idref tag

    The Spring 's documentation says that with idref tag, the referenced beans will be validated at deployment time. When the referenced bean 's classpath is not valid, an error message will be printed out. In this case, the error reporting takes place at runtime or at deployment time? Anyone could explain me in detail?

  • #2
    Originally posted by hoanglovely View Post
    In this case, the error reporting takes place at runtime or at deployment time?
    There is probably no clear line between deployment and run time here. On deployment Spring tries to set up the application context. At that time it has at least to parse the XML and so can find some errors like the idref thing. I'm not sure if the same applies to the beans and their classes when you set them to be lazy-initialized. I don't Spring tries to load all classes ahead, but only as soon as it needs them. At least that's the point where the line is not clear between deployment and run time.

    Joerg

    Comment

    Working...
    X