01: /*
02: * Reference.java February 2006
03: *
04: * Copyright (C) 2006, Niall Gallagher <niallg@users.sf.net>
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation.
09: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13: * GNU Lesser General Public License for more details.
14: *
15: * You should have received a copy of the GNU Lesser General
16: * Public License along with this library; if not, write to the
17: * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18: * Boston, MA 02111-1307 USA
19: */
20:
21: package simple.page.translate;
22:
23: /**
24: * The <code>Reference</code> object is used to determine whether
25: * any of the files used to compose the JSP have changed. This will
26: * allow background compilation of the sources. Once the files
27: * have expired the JSP sources will be translated and compiled
28: * with the most up to date version.
29: *
30: * @author Niall Gallagher
31: */
32: public interface Reference {
33:
34: /**
35: * This checks if the source or its includes have expired. This
36: * will check the JSP and its includes to determine if the
37: * source has changed in any way. For background compilation
38: * this method can be used to refresh the pages to ensure that
39: * the most up to date code is active.
40: *
41: * @return this returns true if any of the JSP files changed
42: */
43: public boolean isModified();
44: }
|