Package org.springframework.data.rest.core.event

Examples of org.springframework.data.rest.core.event.ValidatingRepositoryEventListener


   * {@link org.springframework.context.ApplicationListener} implementation for invoking
   * {@link org.springframework.validation.Validator} instances assigned to specific domain types.
   */
  @Bean
  public ValidatingRepositoryEventListener validatingRepositoryEventListener(ObjectFactory<Repositories> repositories) {
    ValidatingRepositoryEventListener listener = new ValidatingRepositoryEventListener(repositories);
    configureValidatingRepositoryEventListener(listener);
    return listener;
  }
View Full Code Here


  static class ValidatorTestsConfig {

    @Bean
    public ValidatingRepositoryEventListener validatingListener(ObjectFactory<Repositories> repositories) {

      ValidatingRepositoryEventListener listener = new ValidatingRepositoryEventListener(repositories);
      listener.addValidator("beforeSave", new PersonNameValidator());

      return listener;
    }
View Full Code Here

TOP

Related Classes of org.springframework.data.rest.core.event.ValidatingRepositoryEventListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.