/*******************************************************************************
 * Copyright 2016, RadiantBlue Technologies, Inc.
 *
 * Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0
 *
 * 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.venice.piazza.servicecontroller.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * Properties for the ServiceController. Loaded in from application.properties
 * file. Properties defined in the application.properties file will be
 * superseded by values retrieved from the pz-discover service.
 * 
 * @author mlynum
 * @version 1.0
 */
@Configuration
@EnableConfigurationProperties
@ConfigurationProperties(locations = "classpath:application.properties", ignoreUnknownFields = false, prefix = "core")
public class CoreServiceProperties {

	private String appname;

	@Value("${server.port}")
	private int serverPort;
	@Value("${servicecontroller.host}")
	private String host;
	@Value("${servicecontroller.port}")
	private String port;
	@Value("${search.url}")
	private String pzSearchUrl;
	@Value("${metadata.ingest.url}")
	private String pzServicemetadataIngestUrl;
	@Value("${metadata.update.url}")
	private String pzServicemetadataUpdateUrl;
	@Value("${metadata.delete.url}")
	private String pzServicemetadataDeleteUrl;
	@Value("${SPACE}")
	private String space;

	public String getPzSearchUrl() {
		return pzSearchUrl;
	}

	public void setPzSearchUrl(String pzSearchUrl) {
		this.pzSearchUrl = pzSearchUrl;
	}

	public String getPzServicemetadataIngestUrl() {
		return pzServicemetadataIngestUrl;
	}

	public void setPzServicemetadataIngestUrl(String pzServicemetadataIngestUrl) {
		this.pzServicemetadataIngestUrl = pzServicemetadataIngestUrl;
	}

	public String getPzServicemetadataUpdateUrl() {
		return pzServicemetadataUpdateUrl;
	}

	public void setPzServicemetadataUpdateUrl(String pzServicemetadataUpdateUrl) {
		this.pzServicemetadataUpdateUrl = pzServicemetadataUpdateUrl;
	}
	
	public String getPzServicemetadataDeleteUrl() {
		return pzServicemetadataDeleteUrl;
	}

	public void setPzServicemetadataDeleteUrl(String pzServicemetadataDeleteUrl) {
		this.pzServicemetadataDeleteUrl = pzServicemetadataDeleteUrl;
	}

	public String getAppname() {
		return appname;
	}

	public void setAppname(String appname) {
		this.appname = appname;
	}

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public String getPort() {
		return port;
	}

	public void setPort(String port) {
		this.port = port;
	}

	public int getServerPort() {
		return serverPort;
	}

	public void setServerPort(int serverPort) {
		this.serverPort = serverPort;
	}

	public String getSpace() {
		return space;
	}

	public void setSpace(String space) {
		this.space = space;
	}


}
@@ -903,259 +903,28 @@
 ork.
-boot.context.properties.ConfigurationProperties;%0Aimport org.springframework.boot.context.properties.EnableConfigurationProperties;%0Aimport org.springframework.context.annotation.ComponentScan;%0Aimport org.springframework.context.annotation.Configuration
+stereotype.Component
 ;%0A%0A/
@@ -1189,169 +1189,15 @@
 %0A@Co
-nfiguration%0A@EnableConfigurationProperties%0A@ConfigurationProperties(locations = %22classpath:application.properties%22, ignoreUnknownFields = false, prefix = %22core%22)
+mponent
 %0Apub

Refactor Properties for new Spring Boot 1.5