001    /**
002     * Copyright 2010-2013 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.common.util.property;
017    
018    import java.util.List;
019    import java.util.Properties;
020    
021    import org.kuali.common.util.Mode;
022    import org.springframework.util.PropertyPlaceholderHelper;
023    
024    public class PropertiesContext {
025    
026            protected PropertyPlaceholderHelper helper = Constants.DEFAULT_PROPERTY_PLACEHOLDER_HELPER;
027            protected String encoding = Constants.DEFAULT_ENCODING;
028            protected Mode missingLocationsMode = Mode.ERROR;
029            protected Properties properties;
030            protected List<String> locations;
031    
032            public PropertyPlaceholderHelper getHelper() {
033                    return helper;
034            }
035    
036            public void setHelper(PropertyPlaceholderHelper helper) {
037                    this.helper = helper;
038            }
039    
040            public String getEncoding() {
041                    return encoding;
042            }
043    
044            public void setEncoding(String encoding) {
045                    this.encoding = encoding;
046            }
047    
048            public Properties getProperties() {
049                    return properties;
050            }
051    
052            public void setProperties(Properties properties) {
053                    this.properties = properties;
054            }
055    
056            public List<String> getLocations() {
057                    return locations;
058            }
059    
060            public void setLocations(List<String> locations) {
061                    this.locations = locations;
062            }
063    
064            public Mode getMissingLocationsMode() {
065                    return missingLocationsMode;
066            }
067    
068            public void setMissingLocationsMode(Mode missingLocationsMode) {
069                    this.missingLocationsMode = missingLocationsMode;
070            }
071    }