Class OMAGServer
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
ConstructorDescriptionOMAGServer
(org.springframework.context.ConfigurableApplicationContext ctx, OMAGConfigHelper configHelper, OMAGServerOperationalServices omagServerOperationalServices) Constructor injecting the beans required. -
Method Summary
-
Constructor Details
-
OMAGServer
@Autowired public OMAGServer(org.springframework.context.ConfigurableApplicationContext ctx, OMAGConfigHelper configHelper, OMAGServerOperationalServices omagServerOperationalServices) Constructor injecting the beans required.
-
-
Method Details
-
main
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 interfaceorg.springframework.boot.ApplicationRunner
-