Results 1 to 2 of 2

Thread: How to get callback after spring context is all loaded

  1. #1
    Join Date
    Oct 2009
    Posts
    3

    Default How to get callback after spring context is all loaded

    Hi,

    How can I receive a callback after the spring context beans are all loaded and initialized?

    I understand theres BeanPostProcessors which are more for before/after each bean.

    I am rather interested to be notified after all beans are initialized.

    Any advice?

    thank you
    -sung

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    Register an ApplicationListener and check for ContextRefreshed events.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •