Added local-mode hack for Dal.config.
@@ -7,26 +7,28 @@ public class DalConfigConstants {
public static final String DAL_XML = "dal.xml";
public static final String DAL_CONFIG = "Dal.config";
- public static String NAME = "name";
- public static String DATABASE_SETS = "databaseSets";
- public static String DATABASE_SET = "databaseSet";
- public static String ADD = "add";
- public static String PROVIDER = "provider";
- public static String SHARD_STRATEGY = "shardStrategy";
- public static String SHARDING_STRATEGY = "shardingStrategy";
- public static String DATABASE_TYPE = "databaseType";
- public static String SHARDING = "sharding";
- public static String CONNECTION_STRING = "connectionString";
- public static String MASTER = "Master";
- public static String LOG_LISTENER = "LogListener";
- public static String TASK_FACTORY = "TaskFactory";
- public static String FACTORY = "factory";
- public static String LOGGER = "logger";
- public static String SETTINGS = "settings";
- public static String CONNECTION_LOCATOR = "ConnectionLocator";
- public static String LOCATOR = "locator";
- public static String CONFIG_SOURCE = "ConfigSource";
- public static String SOURCE = "source";
+ public static final String NAME = "name";
+ public static final String DATABASE_SETS = "databaseSets";
+ public static final String DATABASE_SET = "databaseSet";
+ public static final String ADD = "add";
+ public static final String PROVIDER = "provider";
+ public static final String SHARD_STRATEGY = "shardStrategy";
+ public static final String SHARDING_STRATEGY = "shardingStrategy";
+ public static final String DATABASE_TYPE = "databaseType";
+ public static final String SHARDING = "sharding";
+ public static final String CONNECTION_STRING = "connectionString";
+ public static final String MASTER = "Master";
+ public static final String LOG_LISTENER = "LogListener";
+ public static final String TASK_FACTORY = "TaskFactory";
+ public static final String FACTORY = "factory";
+ public static final String LOGGER = "logger";
+ public static final String SETTINGS = "settings";
+ public static final String CONNECTION_LOCATOR = "ConnectionLocator";
+ public static final String LOCATOR = "locator";
+ public static final String CONFIG_SOURCE = "ConfigSource";
+ public static final String SOURCE = "source";
+
+ public static final String USE_LOCAL_DAL_CONFIG = "dal.config.uselocal";
public static String getAttribute(Node node, String attributeName) {
return node.getAttributes().getNamedItem(attributeName).getNodeValue();
