forked from quarkiverse/quarkus-amazon-services
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enable constructor injection of NamedDynamoDbTable (quarkiverse…
- Loading branch information
1 parent
f1fcf4c
commit d6837ae
Showing
4 changed files
with
70 additions
and
23 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
21 changes: 21 additions & 0 deletions
21
...rkus/amazon/dynamodb/enhanced/deployment/DynamoDBEnhancedDbTableConstructorInjection.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,21 @@ | ||
package io.quarkus.amazon.dynamodb.enhanced.deployment; | ||
|
||
import jakarta.enterprise.context.ApplicationScoped; | ||
|
||
import io.quarkus.amazon.dynamodb.enhanced.runtime.NamedDynamoDbTable; | ||
import software.amazon.awssdk.enhanced.dynamodb.DynamoDbTable; | ||
|
||
@ApplicationScoped | ||
public class DynamoDBEnhancedDbTableConstructorInjection { | ||
|
||
private DynamoDbTable<DynamoDBExampleTableEntry> syncTable; | ||
|
||
DynamoDBEnhancedDbTableConstructorInjection( | ||
@NamedDynamoDbTable("sync") DynamoDbTable<DynamoDBExampleTableEntry> syncTable) { | ||
this.syncTable = syncTable; | ||
} | ||
|
||
public DynamoDbTable<DynamoDBExampleTableEntry> getSyncTable() { | ||
return syncTable; | ||
} | ||
} |
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