Examples of Repositories


Examples of org.springframework.data.repository.support.Repositories

    @Autowired
    ApplicationContext context;

    @Bean
    public Repositories repositories() {
      return new Repositories(context);
    }
View Full Code Here

Examples of org.springframework.data.repository.support.Repositories

  @Autowired ApplicationContext appCtx;
  @Autowired(required = false) List<MappingContext<?, ?>> mappingContexts = Collections.emptyList();

  @Bean
  public Repositories repositories() {
    return new Repositories(appCtx);
  }
View Full Code Here

Examples of org.springframework.data.repository.support.Repositories

  @Autowired private ApplicationContext context;
  @Autowired(required = false) List<MappingContext<?, ?>> mappingContexts = Collections.emptyList();

  @Bean
  public Repositories repositories() {
    return new Repositories(context);
  }
View Full Code Here

Examples of org.springframework.data.repository.support.Repositories

  @SuppressWarnings({ "rawtypes", "unchecked" })
  private RepositoryInvoker getInvokerFor(Object repository, Class<?> expectedType) {

    Object proxy = getVerifyingProxy(repository, expectedType);
    Repositories repositories = new Repositories(context);
    ConversionService conversionService = new DefaultFormattingConversionService();

    return new CrudRepositoryInvoker((CrudRepository) proxy, repositories.getRepositoryInformationFor(Order.class),
        conversionService);
  }
View Full Code Here

Examples of org.springframework.data.repository.support.Repositories

  @Autowired(required = false) RelProvider relProvider;
  @Autowired(required = false) CurieProvider curieProvider;

  @Bean
  public Repositories repositories() {
    return new Repositories(beanFactory);
  }
View Full Code Here

Examples of org.springframework.data.repository.support.Repositories

  }

  @Bean
  public ResourceMappings resourceMappings() {

    Repositories repositories = repositories();
    RepositoryRestConfiguration config = config();

    return new RepositoryResourceMappings(config, repositories);
  }
View Full Code Here

Examples of org.springframework.data.repository.support.Repositories

  //

  @Bean
  public RootResourceInformationToAlpsDescriptorConverter alpsConverter() {

    Repositories repositories = repositories();
    PersistentEntities persistentEntities = persistentEntities();
    RepositoryEntityLinks entityLinks = entityLinks();
    MessageSourceAccessor messageSourceAccessor = resourceDescriptionMessageSourceAccessor();
    RepositoryRestConfiguration config = config();
    ResourceMappings resourceMappings = resourceMappings();
View Full Code Here

Examples of org.springframework.data.repository.support.Repositories

  ResourceMappings mappings;

  @Before
  public void setUp() {

    Repositories repositories = new Repositories(factory);
    this.mappings = new RepositoryResourceMappings(new RepositoryRestConfiguration(), repositories);
  }
View Full Code Here

Examples of org.springframework.data.repository.support.Repositories

   * @see DATAREST-112
   */
  @Test
  public void usesPropertyNameAsRelForPropertyResourceMapping() {

    Repositories repositories = new Repositories(factory);
    PersistentEntity<?, ?> entity = repositories.getPersistentEntity(Person.class);
    PersistentProperty<?> property = entity.getPersistentProperty("siblings");

    ResourceMetadata metadata = mappings.getMappingFor(Person.class);
    ResourceMapping mapping = metadata.getMappingFor(property);

View Full Code Here

Examples of org.springframework.data.repository.support.Repositories

  DomainObjectMerger merger;

  @Before
  public void setUp() {
    this.merger = new DomainObjectMerger(new Repositories(context.getBeanFactory()), new DefaultConversionService());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.