Class AbstractDynamoDBConfiguration


  • @Configuration
    public abstract class AbstractDynamoDBConfiguration
    extends java.lang.Object
    Base class for Spring Data DynamoDB configuration using JavaConfig.
    Author:
    Vito Limandibhrata
    • Constructor Detail

      • AbstractDynamoDBConfiguration

        public AbstractDynamoDBConfiguration()
    • Method Detail

      • amazonDynamoDB

        public abstract com.amazonaws.services.dynamodbv2.AmazonDynamoDB amazonDynamoDB()
      • amazonAWSCredentials

        public abstract com.amazonaws.auth.AWSCredentials amazonAWSCredentials()
      • getMappingBasePackages

        protected java.lang.String[] getMappingBasePackages()
        Return the base packages to scan for mapped DynamoDBTables. 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.
        Returns:
        the base package to scan for mapped DynamoDBTable classes or null to not enable scanning for entities.
      • getInitialEntitySet

        protected java.util.Set<java.lang.Class<?>> getInitialEntitySet()
                                                                 throws java.lang.ClassNotFoundException
        Scans the mapping base package for classes annotated with DynamoDBTable.
        Returns:
        All classes with DynamoDBTable annotation
        Throws:
        java.lang.ClassNotFoundException - if the class with DynamoDBTable annotation can't be loaded
        See Also:
        getMappingBasePackages()