forked from michaellavelle/spring-data-dynamodb
    
        
        - 
                Notifications
    You must be signed in to change notification settings 
- Fork 139
Closed
Labels
Milestone
Description
Hi i think that this:
Line 76 in 40bd99e
| if (type instanceof Class<?> && AmazonDynamoDBClient.class.isAssignableFrom((Class<?>) type)) { | 
should be
... && AmazonDynamoDB.class ...This way in a CDI context i can have a Producer of AmazonDynamoDB:
@Bean @Produces
    public AmazonDynamoDB amazonDynamoDB() {
//        return AmazonDynamoDBClientBuilder
//          .standard()
//          .withCredentials(amazonAWSCredentialsProvider())
//          .withRegion(Regions.EU_WEST_1).build();
        return AmazonDaxClientBuilder
          .standard()
          .withCredentials(amazonAWSCredentialsProvider())
          .withRegion(Regions.EU_WEST_1)
          .withEndpointConfiguration("**********************************")
          .build();
    }Thanks