View Javadoc

1   /*
2    * Copyright 2004-2005 Germinus XXI
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License")
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package com.germinus.easyconf;
17  
18  /***
19   * Conventions used by EasyConf that can be expressed as contansts
20   * @author  Jorge Ferrer
21   * @version $Revision: 1.5 $
22   *
23   */
24  public interface Conventions {
25  
26      char SELECTOR_START = '[';
27      char SELECTOR_END = ']';
28      char DOT = '.';
29      char SLASH = '-';
30  
31      String INCLUDE_PROPERTY = "include-and-override";
32      String GLOBAL_CONFIGURATION_FILE = "global-configuration";
33  
34      String DIGESTERRULES_EXTENSION = ".digesterRules.xml";
35      String XML_EXTENSION = ".xml";
36      String PROPERTIES_EXTENSION = ".properties";
37  
38      String DATASOURCE_PREFIX = "datasource:";
39      String JNDI_PREFIX = "jndi:";
40  
41      String RELOAD_DELAY_PROPERTY = "easyconf:reload-delay";
42      public static final String COMPANY_ID_PROPERTY = "easyconf:companyId";
43      public static final String COMPONENT_NAME_PROPERTY = "easyconf:componentName";
44      public static final String PREFIX_SEPARATOR = ":";
45  }