01: /*
02: * Created on 25 Jul 2006
03: */
04: package uk.org.ponder.mapping;
05:
06: import uk.org.ponder.beanutil.support.ListBeanPredicateModel;
07:
08: /** A BeanInvalidationModel implemented as a list of predicates **/
09:
10: public class ListBeanInvalidationModel implements BeanInvalidationModel {
11: private ListBeanPredicateModel model = new ListBeanPredicateModel();
12:
13: public void clear() {
14: model.clear();
15: }
16:
17: public String invalidPathMatch(String spec) {
18: return model.findMatch(spec, true);
19: }
20:
21: public void invalidate(String path) {
22: model.addPath(path);
23: }
24:
25: }
|