@Configuration public abstract class AbstractDynamoDBConfiguration extends Object
Constructor | Description |
---|---|
AbstractDynamoDBConfiguration() |
Modifier and Type | Method | Description |
---|---|---|
abstract com.amazonaws.auth.AWSCredentials |
amazonAWSCredentials() |
|
abstract com.amazonaws.services.dynamodbv2.AmazonDynamoDB |
amazonDynamoDB() |
|
DynamoDBMappingContext |
dynamoDBMappingContext() |
Creates a
DynamoDBMappingContext equipped with entity classes scanned
from the mapping base package. |
protected Set<Class<?>> |
getInitialEntitySet() |
Scans the mapping base package for classes annotated with
DynamoDBTable . |
protected String[] |
getMappingBasePackages() |
Return the base packages to scan for mapped
DynamoDBTable s. |
public abstract com.amazonaws.services.dynamodbv2.AmazonDynamoDB amazonDynamoDB()
public abstract com.amazonaws.auth.AWSCredentials amazonAWSCredentials()
protected String[] getMappingBasePackages()
DynamoDBTable
s. Will
return the package name of the configuration class' (the concrete class, not
this one here) by default. So if you have a com.acme.AppConfig
extending AbstractDynamoDBConfiguration
the base package will be
considered com.acme
unless the method is overriden to implement
alternate behaviour.DynamoDBTable
classes or
null to not enable scanning for entities.@Bean public DynamoDBMappingContext dynamoDBMappingContext() throws ClassNotFoundException
DynamoDBMappingContext
equipped with entity classes scanned
from the mapping base package.DynamoDBMappingContext
ClassNotFoundException
- if the class with DynamoDBTable
annotation can't be
loadedgetMappingBasePackages()
protected Set<Class<?>> getInitialEntitySet() throws ClassNotFoundException
DynamoDBTable
.DynamoDBTable
annotationClassNotFoundException
- if the class with DynamoDBTable
annotation can't be
loadedgetMappingBasePackages()
Copyright © 2018. All rights reserved.