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.setup;
05:
06: import com.tc.config.schema.IllegalConfigurationChangeHandler;
07: import com.tc.config.schema.beanfactory.ConfigBeanFactory;
08: import com.tc.config.schema.beanfactory.TerracottaDomainConfigurationDocumentBeanFactory;
09: import com.tc.config.schema.defaults.DefaultValueProvider;
10: import com.tc.config.schema.defaults.FromSchemaDefaultValueProvider;
11: import com.tc.config.schema.utils.StandardXmlObjectComparator;
12: import com.tc.config.schema.utils.XmlObjectComparator;
13: import com.tc.util.Assert;
14:
15: /**
16: * A base class for all {@link com.tc.config.schema.setup.TVSConfigurationSetupManagerFactory} instances.
17: */
18: public abstract class BaseTVSConfigurationSetupManagerFactory implements
19: TVSConfigurationSetupManagerFactory {
20:
21: protected final IllegalConfigurationChangeHandler illegalChangeHandler;
22:
23: protected final ConfigBeanFactory beanFactory;
24: protected final DefaultValueProvider defaultValueProvider;
25: protected final XmlObjectComparator xmlObjectComparator;
26:
27: public BaseTVSConfigurationSetupManagerFactory(
28: IllegalConfigurationChangeHandler illegalConfigurationChangeHandler) {
29: Assert.assertNotNull(illegalConfigurationChangeHandler);
30:
31: this .illegalChangeHandler = illegalConfigurationChangeHandler;
32:
33: this .beanFactory = new TerracottaDomainConfigurationDocumentBeanFactory();
34: this .defaultValueProvider = new FromSchemaDefaultValueProvider();
35: this .xmlObjectComparator = new StandardXmlObjectComparator();
36: }
37:
38: }
|