Interface BeanPostLoad


public interface BeanPostLoad
Fired after a bean is fetched and loaded from the database.

Note that if want to totally change the finding, you need to use a BeanQueryAdapter rather than using postLoad().

  • Method Summary

    Modifier and Type Method Description
    boolean isRegisterFor​(Class<?> cls)
    Return true if this BeanPostLoad instance should be registered for post load on this entity type.
    void postLoad​(Object bean)
    Called after every each bean is loaded from the database.
  • Method Details

    • isRegisterFor

      boolean isRegisterFor​(Class<?> cls)
      Return true if this BeanPostLoad instance should be registered for post load on this entity type.
    • postLoad

      void postLoad​(Object bean)
      Called after every each bean is loaded from the database. You can implement this to derive some information to set to the bean.