1 /*
2 * Copyright 2007 Ralf Joachim
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5 * in compliance with the License. You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software distributed under the License
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11 * or implied. See the License for the specific language governing permissions and limitations under
12 * the License.
13 *
14 * $Id: Configuration.java 6907 2007-03-28 21:24:52Z rjoachim $
15 */
16 package org.castor.core.util;
17
18 /**
19 * Properties class holding user properties.
20 *
21 * @version $Id: Configuration.java,v 1.8 2006/03/08 17:25:52 jens Exp $
22 * @author <a href="mailto:ralf DOT joachim AT syscon DOT eu">Ralf Joachim</a>
23 * @since 1.1.3
24 */
25 public final class CastorProperties extends AbstractProperties {
26 // --------------------------------------------------------------------------
27
28 /** Name of common Castor properties file. */
29 private static final String FILENAME = "castor.properties";
30
31 // --------------------------------------------------------------------------
32
33 /**
34 * Construct properties with given parent. Application and domain class loaders will be
35 * initialized to the ones of the parent. <br/>
36 * Note: This constructor is not intended for public use. Use one of the newInstance() methods
37 * instead.
38 *
39 * @param parent Parent properties.
40 */
41 public CastorProperties(final AbstractProperties parent) {
42 super(parent);
43 loadUserProperties(FILENAME);
44 }
45
46 // --------------------------------------------------------------------------
47 }