001package io.ebean.event;
002
003/**
004 * Fired after a bean is fetched and loaded from the database.
005 * <p>
006 * Note that if want to totally change the finding, you need to use a BeanQueryAdapter
007 * rather than using postLoad().
008 * </p>
009 */
010public interface BeanPostLoad {
011
012  /**
013   * Return true if this BeanPostLoad instance should be registered
014   * for post load on this entity type.
015   */
016  boolean isRegisterFor(Class<?> cls);
017
018  /**
019   * Called after every each bean is loaded from the database. You
020   * can implement this to derive some information to set to the bean.
021   */
022  void postLoad(Object bean);
023
024}