Package org.openbp.config

Source Code of org.openbp.config.ProcessServerConfigBase

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;
  }
}
TOP

Related Classes of org.openbp.config.ProcessServerConfigBase

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.