01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.config.schema.repository;
05:
06: import org.apache.xmlbeans.SchemaType;
07: import org.apache.xmlbeans.XmlObject;
08:
09: import com.tc.config.schema.listen.ConfigurationChangeListener;
10:
11: /**
12: * An object that holds onto an {@link XmlObject}, and lets you know when it changes.
13: */
14: public interface BeanRepository {
15:
16: void ensureBeanIsOfClass(Class theClass);
17:
18: SchemaType rootBeanSchemaType();
19:
20: XmlObject bean();
21:
22: void addListener(ConfigurationChangeListener listener);
23:
24: }
|