01: /*
02: * Created on 25 Jul 2006
03: */
04: package uk.org.ponder.mapping;
05:
06: /** An interface to a generalised "Bean Invalidation Model" which will track
07: * modifications applied via EL expressions, and match them against a
08: * supplied specification.
09: * @author Antranig Basman (antranig@caret.cam.ac.uk)
10: *
11: */
12:
13: public interface BeanInvalidationModel {
14: public void invalidate(String path);
15:
16: public void clear();
17:
18: /** Returns a concrete path which was written to invalidate the specification.
19: * Will be as long as the specification with wildcards replaced by their matches.
20: * @param spec An EL path specification, which may contain wildcards for
21: * path components, e.g. <code>entity.*.property</code>.
22: * @return The actual match for an invalidated path, <code>null</code> if no match.
23: */
24: public String invalidPathMatch(String spec);
25: }
|