001/* 002 * Copyright 2012-2017 the original author or authors. 003 * 004 * Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0 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 017package org.springframework.boot.autoconfigure.integration; 018 019import org.springframework.boot.context.properties.ConfigurationProperties; 020import org.springframework.boot.jdbc.DataSourceInitializationMode; 021 022/** 023 * Configuration properties for Spring Integration. 024 * 025 * @author Vedran Pavic 026 * @author Stephane Nicoll 027 * @since 2.0.0 028 */ 029@ConfigurationProperties(prefix = "spring.integration") 030public class IntegrationProperties { 031 032 private final Jdbc jdbc = new Jdbc(); 033 034 public Jdbc getJdbc() { 035 return this.jdbc; 036 } 037 038 public static class Jdbc { 039 040 private static final String DEFAULT_SCHEMA_LOCATION = "classpath:org/springframework/" 041 + "integration/jdbc/schema-@@platform@@.sql"; 042 043 /** 044 * Path to the SQL file to use to initialize the database schema. 045 */ 046 private String schema = DEFAULT_SCHEMA_LOCATION; 047 048 /** 049 * Database schema initialization mode. 050 */ 051 private DataSourceInitializationMode initializeSchema = DataSourceInitializationMode.EMBEDDED; 052 053 public String getSchema() { 054 return this.schema; 055 } 056 057 public void setSchema(String schema) { 058 this.schema = schema; 059 } 060 061 public DataSourceInitializationMode getInitializeSchema() { 062 return this.initializeSchema; 063 } 064 065 public void setInitializeSchema(DataSourceInitializationMode initializeSchema) { 066 this.initializeSchema = initializeSchema; 067 } 068 069 } 070 071}