01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: SiteListener.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine;
09:
10: /**
11: * An interface that can be implemented to receive notifications about the
12: * events related to a site in the web engine
13: *
14: * @author Geert Bevin (gbevin[remove] at uwyn dot com)
15: * @version $Revision: 3634 $
16: * @see Site
17: * @since 1.5
18: */
19: public interface SiteListener {
20: /**
21: * This method is called when any of the resources that were used during
22: * the construction of the site has been detected as being modified.
23: * <p>This will only be detected if the <code>SITE_AUTO_RELOAD</code>
24: * configuration parameter is set to <code>true</code>.
25: * <p>If you manually create a new site, you have to call
26: * {@link Site#populateFromOther} on the outdated site instance, so that the
27: * rest of this request and subsequent requests will be processed against the
28: * up-to-date version.
29: *
30: * @param outdatedSite the instance of the site where a modified resource
31: * has been detected
32: * @since 1.5
33: */
34: public void modified(Site outdatedSite);
35: }
|