Class DynamoDbUsersDaoFactory
java.lang.Object
com.sanctionco.thunder.dao.dynamodb.DynamoDbUsersDaoFactory
- All Implemented Interfaces:
UsersDaoFactory
,io.dropwizard.jackson.Discoverable
Provides the Amazon DynamoDB implementation for the
UsersDaoFactory
. Provides methods
to construct new UsersDao and DatabaseHealthCheck objects that interact with DynamoDB.
The application configuration file should use type: dynamodb
in order to use this
factory.
This class must be registered in
/resources/META-INF/services/com.sanctionco.thunder.dao.UsersDaoFactory
.
- See Also:
UsersDaoFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConstructs a newDynamoDbHealthCheck
instance.createUsersDao(com.fasterxml.jackson.databind.ObjectMapper mapper)
Constructs a newDynamoDbUsersDao
instance.
-
Constructor Details
-
DynamoDbUsersDaoFactory
public DynamoDbUsersDaoFactory()
-
-
Method Details
-
getEndpoint
-
getRegion
-
getTableName
-
createUsersDao
Constructs a newDynamoDbUsersDao
instance.- Specified by:
createUsersDao
in interfaceUsersDaoFactory
- Parameters:
mapper
- the ObjectMapper instance to use- Returns:
- the created
DynamoDbUsersDao
instance
-
createHealthCheck
Constructs a newDynamoDbHealthCheck
instance.- Specified by:
createHealthCheck
in interfaceUsersDaoFactory
- Returns:
- the created
DynamoDbHealthCheck
instance
-