Class ValidatingDynamoDBEventListener

  • All Implemented Interfaces:
    java.util.EventListener, org.springframework.context.ApplicationListener<DynamoDBMappingEvent<?>>

    public class ValidatingDynamoDBEventListener
    extends AbstractDynamoDBEventListener<java.lang.Object>
    javax.validation dependant entities validator. When it is registered as Spring component its automatically invoked before entities are saved in database.
    Author:
    Michael Lavelle, Sebastian Just
    • Constructor Detail

      • ValidatingDynamoDBEventListener

        public ValidatingDynamoDBEventListener​(javax.validation.Validator validator)
        Creates a new ValidatingDynamoDBEventListener using the given Validator.
        Parameters:
        validator - must not be null.