KickJava   Java API By Example, From Geeks To Geeks.

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


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 /**
7  * An object that knows how to make TVS configuration setup managers.
8  */

9 public interface TVSConfigurationSetupManagerFactory {
10
11   public static final String JavaDoc DEFAULT_APPLICATION_NAME = "default";
12
13   public static final String JavaDoc CONFIG_FILE_PROPERTY_NAME = "tc.config";
14
15   L1TVSConfigurationSetupManager createL1TVSConfigurationSetupManager() throws ConfigurationSetupException;
16
17   /**
18    * @param l2Name The name of the L2 we should create configuration for. Normally you should pass <code>null</code>,
19    * which lets the configuration system work it out itself (usually from a system property), but, especially for
20    * tests, sometimes you need to specifically control this. (Because system properties are global, if you're
21    * starting more than one L2 in a single VM, it's hard or impossible to accurately set which L2 is being used
22    * that way.)
23    */

24   L2TVSConfigurationSetupManager createL2TVSConfigurationSetupManager(String JavaDoc l2Name) throws ConfigurationSetupException;
25
26 }
27
Popular Tags