All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kuali.common.util.spring.DefaultSpringContext Maven / Gradle / Ivy

There is a newer version: 4.4.17
Show newest version
/**
 * Copyright 2010-2012 The Kuali Foundation
 *
 * Licensed under the Educational Community License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.opensource.org/licenses/ecl2.php
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.kuali.common.util.spring;

import java.io.File;
import java.util.List;
import java.util.Properties;

import org.kuali.common.util.property.Constants;
import org.kuali.common.util.property.GlobalPropertiesMode;
import org.springframework.util.PropertyPlaceholderHelper;

public class DefaultSpringContext implements SpringContext {

	PropertyPlaceholderHelper helper = Constants.DEFAULT_PROPERTY_PLACEHOLDER_HELPER;
	GlobalPropertiesMode globalPropertiesMode = Constants.DEFAULT_GLOBAL_PROPERTIES_MODE;
	String encoding;
	String contextLocation;
	File workingDir;
	boolean filterContext;
	List filterIncludes;
	List filterExcludes;
	List exportIncludes;
	List exportExcludes;
	boolean exportProperties;
	File exportPropertiesFile;
	String exportPropertiesFileProperty;
	List propertySources;

	@Override
    public PropertyPlaceholderHelper getHelper() {
		return helper;
	}

	public void setHelper(PropertyPlaceholderHelper helper) {
		this.helper = helper;
	}

	@Override
    public GlobalPropertiesMode getGlobalPropertiesMode() {
		return globalPropertiesMode;
	}

	public void setGlobalPropertiesMode(GlobalPropertiesMode globalPropertiesMode) {
		this.globalPropertiesMode = globalPropertiesMode;
	}

	@Override
    public String getEncoding() {
		return encoding;
	}

	public void setEncoding(String encoding) {
		this.encoding = encoding;
	}

	@Override
    public String getContextLocation() {
		return contextLocation;
	}

	public void setContextLocation(String contextLocation) {
		this.contextLocation = contextLocation;
	}

	@Override
    public File getWorkingDir() {
		return workingDir;
	}

	public void setWorkingDir(File workingDir) {
		this.workingDir = workingDir;
	}

	@Override
    public boolean isFilterContext() {
		return filterContext;
	}

	public void setFilterContext(boolean filterContext) {
		this.filterContext = filterContext;
	}

	@Override
    public List getFilterIncludes() {
		return filterIncludes;
	}

	public void setFilterIncludes(List filterIncludes) {
		this.filterIncludes = filterIncludes;
	}

	@Override
    public List getFilterExcludes() {
		return filterExcludes;
	}

	public void setFilterExcludes(List filterExcludes) {
		this.filterExcludes = filterExcludes;
	}

	@Override
    public List getExportIncludes() {
		return exportIncludes;
	}

	public void setExportIncludes(List exportIncludes) {
		this.exportIncludes = exportIncludes;
	}

	@Override
    public List getExportExcludes() {
		return exportExcludes;
	}

	public void setExportExcludes(List exportExcludes) {
		this.exportExcludes = exportExcludes;
	}

	@Override
    public boolean isExportProperties() {
		return exportProperties;
	}

	public void setExportProperties(boolean exportProperties) {
		this.exportProperties = exportProperties;
	}

	@Override
    public File getExportPropertiesFile() {
		return exportPropertiesFile;
	}

	public void setExportPropertiesFile(File exportPropertiesFile) {
		this.exportPropertiesFile = exportPropertiesFile;
	}

	@Override
    public String getExportPropertiesFileProperty() {
		return exportPropertiesFileProperty;
	}

	public void setExportPropertiesFileProperty(String exportPropertiesFileProperty) {
		this.exportPropertiesFileProperty = exportPropertiesFileProperty;
	}

	@Override
    public List getPropertySources() {
		return propertySources;
	}

	public void setPropertySources(List propertySources) {
		this.propertySources = propertySources;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy