org.openbp.config.ProcessServerConfigBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openbp-server Show documentation
Show all versions of openbp-server Show documentation
The OpenBP process engine (main module)
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;
}
}