KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > config > schema > repository > MutableBeanRepository


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.config.schema.repository;
5
6 import org.apache.xmlbeans.XmlException;
7 import org.apache.xmlbeans.XmlObject;
8
9 import com.tc.config.schema.validate.ConfigurationValidator;
10
11 /**
12  * A {@link BeanRepository} that lets clients change the bean in it.
13  */

14 public interface MutableBeanRepository extends BeanRepository {
15
16   void setBean(XmlObject bean, String JavaDoc sourceDescription) throws XmlException;
17
18   void addValidator(ConfigurationValidator validator);
19
20   /**
21    * For <strong>TESTS ONLY</strong>.
22    */

23   void saveCopyOfBeanInAnticipationOfFutureMutation();
24
25   /**
26    * For <strong>TESTS ONLY</strong>.
27    */

28   void didMutateBean();
29
30 }
31
Popular Tags