1 /*
2 * Copyright 2007 Ralf Joachim
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 * $Id: Configuration.java 6907 2007-03-28 21:24:52Z rjoachim $
17 */
18 package org.castor.core.util;
19
20 /**
21 * Properties class holding user properties.
22 *
23 * @version $Id: Configuration.java,v 1.8 2006/03/08 17:25:52 jens Exp $
24 * @author <a href="mailto:ralf DOT joachim AT syscon DOT eu">Ralf Joachim</a>
25 * @since 1.1.3
26 */
27 public final class CastorProperties extends AbstractProperties {
28 //--------------------------------------------------------------------------
29
30 /** Name of common Castor properties file. */
31 private static final String FILENAME = "castor.properties";
32
33 //--------------------------------------------------------------------------
34
35 /**
36 * Construct properties with given parent. Application and domain class loaders will be
37 * initialized to the ones of the parent.
38 * <br/>
39 * Note: This constructor is not intended for public use. Use one of the newInstance() methods
40 * instead.
41 *
42 * @param parent Parent properties.
43 */
44 public CastorProperties(final AbstractProperties parent) {
45 super(parent);
46 loadUserProperties(FILENAME);
47 }
48
49 //--------------------------------------------------------------------------
50 }