java.lang.Object
org.odpi.openmetadata.serverchassis.springboot.OMAGServer
All Implemented Interfaces:
org.springframework.boot.ApplicationRunner

@SpringBootApplication(scanBasePackages="org.odpi.openmetadata") public class OMAGServer extends Object implements org.springframework.boot.ApplicationRunner
OMAGServer provides the main program for the OMAG Server spring-boot based starter application.
  • Constructor Summary

    Constructors
    Constructor
    Description
    OMAGServer(org.springframework.context.ConfigurableApplicationContext ctx, OMAGConfigHelper configHelper, org.odpi.openmetadata.serveroperations.server.OMAGServerOperationalServices omagServerOperationalServices)
    Constructor injecting the beans required.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    Main program, creating spring boot application instance.
    void
    run(org.springframework.boot.ApplicationArguments args)
    ApplicationRunner implementation.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OMAGServer

      @Autowired public OMAGServer(org.springframework.context.ConfigurableApplicationContext ctx, OMAGConfigHelper configHelper, org.odpi.openmetadata.serveroperations.server.OMAGServerOperationalServices omagServerOperationalServices)
      Constructor injecting the beans required.
  • Method Details

    • main

      public static void main(String[] args)
      Main program, creating spring boot application instance.
      Parameters:
      args -
    • run

      public void run(org.springframework.boot.ApplicationArguments args)
      ApplicationRunner implementation. The purpose of this class is to provide a standard way to run the OMAG server activation task, separate from the main application thread. Executing the server activation in a runner task affects internal availability state by default as the runners are part of the standard application lifecycle.
      Specified by:
      run in interface org.springframework.boot.ApplicationRunner