-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate airbyte-bootloader to Micronaut
- Loading branch information
1 parent
13369cf
commit 9b05e22
Showing
21 changed files
with
1,329 additions
and
828 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
airbyte-bootloader/src/main/java/io/airbyte/bootloader/Application.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright (c) 2022 Airbyte, Inc., all rights reserved. | ||
*/ | ||
|
||
package io.airbyte.bootloader; | ||
|
||
import io.micronaut.context.ApplicationContext; | ||
import io.micronaut.runtime.Micronaut; | ||
import lombok.extern.slf4j.Slf4j; | ||
|
||
/** | ||
* Main application entry point responsible for starting the server and invoking the bootstrapping | ||
* of the Airbyte environment. | ||
*/ | ||
@Slf4j | ||
public class Application { | ||
|
||
public static void main(final String[] args) { | ||
try { | ||
final ApplicationContext applicationContext = Micronaut.run(Application.class, args); | ||
final Bootloader bootloader = applicationContext.getBean(Bootloader.class); | ||
bootloader.load(); | ||
System.exit(0); | ||
} catch (final Exception e) { | ||
log.error("Unable to bootstrap Airbyte environment.", e); | ||
System.exit(-1); | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.