Java 类org.springframework.data.repository.core.support.RepositoryFactorySupport 实例源码

项目:spring-data-documentdb    文件:DocumentDbRepositoryFactoryBeanUnitTest.java   
@Test
public void testCreateRepositoryFactory() {
    final DocumentDbRepositoryFactoryBean factoryBean =
            new DocumentDbRepositoryFactoryBean(PersonRepository.class, dbTemplate);
    final RepositoryFactorySupport factory = factoryBean.createRepositoryFactory();
    assertThat(factory).isNotNull();
}
项目:spring-data-snowdrop    文件:JpaWithSnowdropRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) {
    DatasourceMapper datasourceMapper = new JpaDatasourceMapper(entityManager.getEntityManagerFactory());
    SnowdropOperations operations = new SnowdropTemplate(datasourceMapper);
    SnowdropRepositoryFactory snowdropRepositoryFactory = new SnowdropRepositoryFactory(operations);

    postProcessors.forEach(p -> p.postProcess(snowdropRepositoryFactory));

    return new JpaWithSnowdropRepositoryFactory(entityManager, snowdropRepositoryFactory);
}
项目:dubbox-solr    文件:SolrRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport doCreateRepositoryFactory() {

    SolrRepositoryFactory factory = operations != null ? new SolrRepositoryFactory(this.operations)
            : new SolrRepositoryFactory(this.solrClient);
    factory.setSchemaCreationSupport(schemaCreationSupport);
    return factory;
}
项目:ignite    文件:IgniteRepositoryFactoryBean.java   
/** {@inheritDoc} */
@Override protected RepositoryFactorySupport createRepositoryFactory() {
    try {
        Ignite ignite = (Ignite)ctx.getBean("igniteInstance");

        return new IgniteRepositoryFactory(ignite);
    }
    catch (BeansException ex) {
        try {
            IgniteConfiguration cfg = (IgniteConfiguration)ctx.getBean("igniteCfg");

            return new IgniteRepositoryFactory(cfg);
        }
        catch (BeansException ex2) {
            try {
                String path = (String)ctx.getBean("igniteSpringCfgPath");

                return new IgniteRepositoryFactory(path);
            }
            catch (BeansException ex3) {
                throw new IgniteException("Failed to initialize Ignite repository factory. Ignite instance or" +
                    " IgniteConfiguration or a path to Ignite's spring XML configuration must be defined in the" +
                    " application configuration");
            }
        }
    }
}
项目:ef-orm    文件:GqRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport doCreateRepositoryFactory() {
    EntityManagerFactory emf;
    if(entityManagerFactoryRef==null){
        emf = context.getBean(EntityManagerFactory.class);
    }else{
        emf = context.getBean(entityManagerFactoryRef, EntityManagerFactory.class);
    }
    return new GqRepositoryFactory((JefEntityManagerFactory) emf);
}
项目:spring-data-solr    文件:SolrRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport doCreateRepositoryFactory() {

    SolrRepositoryFactory factory = operations != null ? new SolrRepositoryFactory(this.operations)
            : new SolrRepositoryFactory(this.solrServer);
    factory.setSchemaCreationSupport(schemaCreationSupport);
    return factory;
}
项目:spring-data-dynamodb    文件:DynamoDBRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport createRepositoryFactory() {
    if (dynamoDBOperations == null)
    {
        dynamoDBOperations = new DynamoDBTemplate(amazonDynamoDB,dynamoDBMapperConfig);
    }
    return new DynamoDBRepositoryFactory(dynamoDBOperations);
}
项目:spring-data-jdbc    文件:JdbcRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport doCreateRepositoryFactory() {
    return new JdbcRepositoryFactory(datasource);
}
项目:os    文件:DefaultRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) {
    return new DefaultRepositoryFactory(entityManager);
}
项目:spring-data-documentdb    文件:DocumentDbRepositoryFactoryBean.java   
@Override
protected final RepositoryFactorySupport createRepositoryFactory() {
    return getFactoryInstance(applicationContext);
}
项目:spring-data-documentdb    文件:DocumentDbRepositoryFactoryBean.java   
protected RepositoryFactorySupport getFactoryInstance(ApplicationContext applicationContext) {
    return new DocumentDbRepositoryFactory(operations, applicationContext);
}
项目:tasfe-framework    文件:BaseRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) {
    return new BaseRepositoryFactory(entityManager);
}
项目:spring-data-spanner    文件:SpannerRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport createRepositoryFactory() {
  return new SpannerRepositoryFactory(operations);
}
项目:spring-data-snowdrop    文件:SnowdropRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport createRepositoryFactory() {
    return new SnowdropRepositoryFactory(snowdropOperations);
}
项目:itweet-boot    文件:BaseRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport createRepositoryFactory(EntityManager em) {
    return new BaseRepositoryFactory(em);
}
项目:spring-multitenancy    文件:MongoRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport createRepositoryFactory() {
    return new MongoRepositoryFactory(mappingContext, operations, config);
}
项目:spring-boot-gae    文件:ObjectifyRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport createRepositoryFactory() {
    return new ObjectifyRepositoryFactory(objectify, searchService);
}
项目:spring-data-gclouddatastore    文件:GcloudDatastoreRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport createRepositoryFactory() {
    return new GcloudDatastoreRepositoryFactory(this.datastoreOptions);
}
项目:OperatieBRP    文件:CustomJpaRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport createRepositoryFactory(final EntityManager entityManager) {
    return new CustomJpaRepositoryFactory(entityManager, maxCostsQueryPlan);
}
项目:spring-data-jdbc-template    文件:JdbcTemplateRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport createRepositoryFactory() {
    return new JdbcTemplateRepositoryFactory(configuration);
}
项目:spring-cloud-samples    文件:RepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) {
    return new RepositoryFactory(entityManager);
}
项目:spring-data-objectify    文件:ObjectifyRepositoryFactoryBean.java   
@Override
    protected RepositoryFactorySupport createRepositoryFactory() {
//        return new ObjectifyRepositoryFactory(queryCreator, repositoryQueryType);
        return new ObjectifyRepositoryFactory(queryCreator, repositoryQueryType, mappingContext);
    }
项目:bootstrap    文件:RestRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport createRepositoryFactory(final EntityManager entityManager) {
    return new RestRepositoryFactory(entityManager);
}
项目:spring-data-ebean    文件:EbeanRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport doCreateRepositoryFactory() {
  return createRepositoryFactory(ebeanServer);
}
项目:spring-data-mybatis    文件:MybatisRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport doCreateRepositoryFactory() {
    return new MybatisRepositoryFactory(mappingContext, sqlSessionTemplate, dialect, auditorAware, auditDateAware);
}
项目:beyondj    文件:CustomQueryDslMongodbRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport getFactoryInstance(MongoOperations operations) {
    return new CustomQueryDslMongodbRepositoryFactory<T, I>(operations);
}
项目:ha-db    文件:DefaultRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) {
    return new DefaultRepositoryFactory(entityManager);
}
项目:spring-data-jpa-extra    文件:GenericJpaRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) {
    RepositoryFactorySupport factorySupport = new GenericJpaRepositoryFactory(entityManager);
    factorySupport.setRepositoryBaseClass(GenericJpaRepositoryImpl.class);
    return factorySupport;
}
项目:mongodb-aggregate-query-support    文件:AggregateQuerySupportingRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport getFactoryInstance(MongoOperations operations) {
  Assert.notNull(queryExecutor);
  return new AggregateQuerySupportingRepositoryFactory(operations, queryExecutor);
}
项目:spring-data-arangodb    文件:ArangoDbRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport doCreateRepositoryFactory() {
    return new ArangoDbRepositoryFactory();
}
项目:java-platform    文件:CustomRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) {
    return new CustomRepository<>(entityManager);
}
项目:strategy-spring-security-acl    文件:AclJpaRepositoryFactoryBean.java   
protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) {
  return new Factory(entityManager);
}
项目:strategy-spring-security-acl    文件:AclElasticsearchRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport createRepositoryFactory() {
  return new Factory(operations);
}
项目:ariADDna    文件:AppConfiguration.java   
@Bean
public RepositoryFactorySupport repositoryFactorySupport(){
    LOGGER.info("In bean repositoryFactorySupport() entity manager is : {}", em.toString());
    return new JpaRepositoryFactory(em);
}
项目:spring-boot-jpa-data-rest-soft-delete    文件:CustomJpaRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) {
    return new CustomJpaRepositoryFactory<T, ID>(entityManager);
}
项目:abixen-platform    文件:PlatformJpaRepositoryFactoryBean.java   
protected RepositoryFactorySupport createRepositoryFactory(EntityManager em) {
    return new PlatformJpaRepositoryFactory(em);
}
项目:coordinated-entry    文件:BaseRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport createRepositoryFactory(EntityManager em) {
    return new BaseRepositoryFactory(em);
}
项目:coordinated-entry    文件:BaseRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport createRepositoryFactory(EntityManager em) {
    return new BaseRepositoryFactory(em);
}
项目:g2    文件:DefaultRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport createRepositoryFactory(
        EntityManager entityManager) {

    return new DefaultRepositoryFactory(entityManager);
}
项目:spring-data-jpa-entity-graph    文件:EntityGraphJpaRepositoryFactoryBean.java   
@Override
protected RepositoryFactorySupport createRepositoryFactory(EntityManager entityManager) {
  return new EntityGraphJpaRepositoryFactory(entityManager);
}