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

org.openbp.config.ProcessServerConfigBase Maven / Gradle / Ivy

There is a newer version: 0.9.11
Show newest version
package org.openbp.config;

import org.openbp.server.ProcessServer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Basic spring configuration that initiates a component scan for OpenBP server components.
 * Scans alle org.openbp.server packages.
 */
@Configuration
public class ProcessServerConfigBase
{
	/** Classpath name of the server's properties resource or null */
	private String propertiesResourceName = "OpenBP-Server.properties";

	@Bean
	public ProcessServer processServer()
	{
		ProcessServer server = new ProcessServer();
		server.setPropertiesResourceName(propertiesResourceName);
		return server;
	}

	/**
	 * Sets the classpath name of the server's properties resource.
	 * @param propertiesResourceName Resource name or null (default: "OpenBP-Server.properties")
	 */
	public void setPropertiesResourceName(String propertiesResourceName)
	{
		this.propertiesResourceName = propertiesResourceName;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy