001    
002    /*
003     * Copyright (C) 2012 Archie L. Cobbs. All rights reserved.
004     *
005     * $Id: PersistentObjectListener.java 226 2012-01-18 16:30:35Z archie.cobbs $
006     */
007    
008    package org.dellroad.stuff.pobj;
009    
010    /**
011     * Listener interface for changes to a {@link PersistentObject}.
012     *
013     * @param <T> type of the root persistent object
014     */
015    public interface PersistentObjectListener<T> {
016    
017        /**
018         * Handle notification of an updated root object.
019         */
020        void handleEvent(PersistentObjectEvent<T> event);
021    }
022