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: /**
07: * An object that knows how to make TVS configuration setup managers.
08: */
09: public interface TVSConfigurationSetupManagerFactory {
10:
11: public static final String DEFAULT_APPLICATION_NAME = "default";
12:
13: public static final String CONFIG_FILE_PROPERTY_NAME = "tc.config";
14:
15: L1TVSConfigurationSetupManager createL1TVSConfigurationSetupManager()
16: throws ConfigurationSetupException;
17:
18: /**
19: * @param l2Name The name of the L2 we should create configuration for. Normally you should pass <code>null</code>,
20: * which lets the configuration system work it out itself (usually from a system property), but, especially for
21: * tests, sometimes you need to specifically control this. (Because system properties are global, if you're
22: * starting more than one L2 in a single VM, it's hard or impossible to accurately set which L2 is being used
23: * that way.)
24: */
25: L2TVSConfigurationSetupManager createL2TVSConfigurationSetupManager(
26: String l2Name) throws ConfigurationSetupException;
27:
28: }
|