Package org.springframework.data.util

Examples of org.springframework.data.util.AnnotatedTypeScanner


   */
  @Test
  @SuppressWarnings("unchecked")
  public void scanningforAtPersistentFindsTypeAliasAnnotatedTypes() {

    AnnotatedTypeScanner scanner = new AnnotatedTypeScanner(Persistent.class);
    Set<Class<?>> types = scanner.findTypes(getClass().getPackage().getName());

    assertThat(types, hasSize(2));
    assertThat(types, hasItems(SampleType.class, TypeAlias.class));
  }
View Full Code Here


   */
  @Test
  @SuppressWarnings("unchecked")
  public void createsTypeMapperForGenericTypesWithDifferentBindings() {

    AnnotatedTypeScanner scanner = new AnnotatedTypeScanner(TypeAlias.class);

    SampleMappingContext context = new SampleMappingContext();
    context.setInitialEntitySet(scanner.findTypes(getClass().getPackage().getName()));
    context.initialize();

    new MappingContextTypeInformationMapper(context);
  }
View Full Code Here

    for (Class<?> domainType : repositories()) {
      packagesToScan.add(domainType.getPackage().getName());
    }

    return new AnnotatedTypeScanner(Projection.class).findTypes(packagesToScan);
  }
View Full Code Here

   */
  @Bean
  @SuppressWarnings("unchecked")
  public GemfireMappingContext gemfireMappingContext() {

    AnnotatedTypeScanner scanner = new AnnotatedTypeScanner(Region.class);

    GemfireMappingContext context = new GemfireMappingContext();
    context.setInitialEntitySet(scanner.findTypes(GemfireRepositoryConfig.class.getPackage().getName()));
    context.initialize();

    return context;
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.util.AnnotatedTypeScanner

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.