27 Eylül 2022 Salı

SpringContext SmartInitializingSingleton Arayüzü - Extension Point

Giriş
Şeklen şöyle
Açıklaması şöyle
... which is a callback interface called after all singleton objects managed by the spring container are initialized. The trigger timing is after postProcessAfterInitialization.
Örnek
Şöyle yaparız
public class TestSmartInitializingSingleton implements SmartInitializingSingleton {
  @Override
  public void afterSingletonsInstantiated() {
    ...
  }
}







Hiç yorum yok:

Yorum Gönder