KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > config > schema > setup > BaseTVSConfigurationSetupManagerFactory


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.setup;
5
6 import com.tc.config.schema.IllegalConfigurationChangeHandler;
7 import com.tc.config.schema.beanfactory.ConfigBeanFactory;
8 import com.tc.config.schema.beanfactory.TerracottaDomainConfigurationDocumentBeanFactory;
9 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 TVSConfigurationSetupManagerFactory {
19
20   protected final IllegalConfigurationChangeHandler illegalChangeHandler;
21   
22   protected final ConfigBeanFactory beanFactory;
23   protected final DefaultValueProvider defaultValueProvider;
24   protected final XmlObjectComparator xmlObjectComparator;
25
26   public BaseTVSConfigurationSetupManagerFactory(IllegalConfigurationChangeHandler illegalConfigurationChangeHandler) {
27     Assert.assertNotNull(illegalConfigurationChangeHandler);
28     
29     this.illegalChangeHandler = illegalConfigurationChangeHandler;
30     
31     this.beanFactory = new TerracottaDomainConfigurationDocumentBeanFactory();
32     this.defaultValueProvider = new FromSchemaDefaultValueProvider();
33     this.xmlObjectComparator = new StandardXmlObjectComparator();
34   }
35
36 }
37
Popular Tags