-
Notifications
You must be signed in to change notification settings - Fork 51
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
- Loading branch information
1 parent
2a38846
commit 243bd83
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
...erse/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.quarkiverse.amazon.dynamodb.enhanced.deployment; | ||
|
||
import jakarta.enterprise.context.ApplicationScoped; | ||
|
||
import io.quarkiverse.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