001package com.avaje.ebean.bean;
002
003/**
004 * Used to specify a listener to be notified when a BeanCollection is first
005 * used.
006 * <p>
007 * To use this you can set a BeanCollectionTouched onto a BeanCollection before
008 * it has been used. When the BeanCollection is first used by the client code
009 * then the BeanCollectionTouched is notified. It can only be notified once.
010 * </p>
011 * 
012 * @author rbygrave
013 */
014public interface BeanCollectionTouched {
015
016  /**
017   * Notify the listener that the bean collection has been used.
018   */
019  void notifyTouched(BeanCollection<?> c);
020}