Examples of afterPropertiesSet()


Examples of org.springframework.data.keyvalue.redis.connection.jredis.JredisConnectionFactory.afterPropertiesSet()

    jredisConnFactory.setUsePool(true);

    jredisConnFactory.setPort(SettingsUtils.getPort());
    jredisConnFactory.setHostName(SettingsUtils.getHost());

    jredisConnFactory.afterPropertiesSet();

    RedisTemplate<String, String> stringTemplateJR = new StringRedisTemplate(jredisConnFactory);
    RedisTemplate<String, Person> personTemplateJR = new RedisTemplate<String, Person>();
    personTemplateJR.setConnectionFactory(jredisConnFactory);
    personTemplateJR.afterPropertiesSet();
View Full Code Here

Examples of org.springframework.data.keyvalue.redis.connection.rjc.RjcConnectionFactory.afterPropertiesSet()

    // rjc
    RjcConnectionFactory rjcConnFactory = new RjcConnectionFactory();
    rjcConnFactory.setUsePool(true);
    rjcConnFactory.setPort(SettingsUtils.getPort());
    rjcConnFactory.setHostName(SettingsUtils.getHost());
    rjcConnFactory.afterPropertiesSet();

    RedisTemplate<String, String> stringTemplateRJC = new StringRedisTemplate(rjcConnFactory);
    RedisTemplate<String, Person> personTemplateRJC = new RedisTemplate<String, Person>();
    personTemplateRJC.setConnectionFactory(rjcConnFactory);
    personTemplateRJC.afterPropertiesSet();
View Full Code Here

Examples of org.springframework.data.keyvalue.redis.core.RedisTemplate.afterPropertiesSet()

    jedisConnFactory.setHostName(SettingsUtils.getHost());
    jedisConnFactory.afterPropertiesSet();

    RedisTemplate genericTemplate = new RedisTemplate();
    genericTemplate.setConnectionFactory(jedisConnFactory);
    genericTemplate.afterPropertiesSet();

    RedisTemplate<String, String> xstreamGenericTemplate = new RedisTemplate<String, String>();
    xstreamGenericTemplate.setConnectionFactory(jedisConnFactory);
    xstreamGenericTemplate.setDefaultSerializer(serializer);
    xstreamGenericTemplate.afterPropertiesSet();
View Full Code Here

Examples of org.springframework.data.keyvalue.riak.core.RiakTemplate.afterPropertiesSet()

      riak.getRestTemplate().setErrorHandler(new Ignore404sErrorHandler());
      if (cl.hasOption('u')) {
        riak.setDefaultUri(cl.getOptionValue('u'));
      }
      try {
        riak.afterPropertiesSet();
      } catch (Exception e) {
        System.err.println("Error creating RiakTemplate: " + e.getMessage());
      }
      String[] files = cl.getOptionValues('j');
      if (null != files) {
View Full Code Here

Examples of org.springframework.data.mongodb.core.convert.MappingMongoConverter.afterPropertiesSet()

    mappingContext.setInitialEntitySet(new HashSet<Class<?>>(Arrays.asList(XObject.class)));
    mappingContext.initialize();

    DbRefResolver dbRefResolver = new DefaultDbRefResolver(factory);
    MappingMongoConverter mappingConverter = new MappingMongoConverter(dbRefResolver, mappingContext);
    mappingConverter.afterPropertiesSet();

    this.mongoTemplate = new MongoTemplate(factory, mappingConverter);
    mongoTemplate.setApplicationContext(applicationContext);
  }
View Full Code Here

Examples of org.springframework.data.mongodb.core.mapping.MongoMappingContext.afterPropertiesSet()

      }
    }));

    MongoMappingContext context = new MongoMappingContext();
    context.setSimpleTypeHolder(conversions.getSimpleTypeHolder());
    context.afterPropertiesSet();

    MappingMongoConverter mongoConverter = new MappingMongoConverter(resolver, context);
    mongoConverter.setCustomConversions(conversions);
    mongoConverter.afterPropertiesSet();
View Full Code Here

Examples of org.springframework.data.neo4j.support.MappingInfrastructureFactoryBean.afterPropertiesSet()

        final EntityTools<Node> nodeEntityTools = new EntityTools<Node>(nodeTypeRepresentationStrategy, nodeEntityStateFactory, nodeEntityInstantiator, mappingContext);
        final EntityTools<Relationship> relationshipEntityTools = new EntityTools<Relationship>(relationshipTypeRepresentationStrategy, relationshipEntityStateFactory, relationshipEntityInstantiator, mappingContext);

        entityPersister = new Neo4jEntityPersister(conversionService, nodeEntityTools, relationshipEntityTools, mappingContext, entityStateHandler);
        mappingContext.afterPropertiesSet();
        factoryBean.afterPropertiesSet();
        return factoryBean.getObject();
    }

    protected void setBasePackage(Neo4jMappingContext mappingContext) throws ClassNotFoundException {
        setBasePackage(mappingContext, getClass().getPackage().getName());
View Full Code Here

Examples of org.springframework.data.redis.connection.jedis.JedisConnectionFactory.afterPropertiesSet()

            jedisConnectionFactory.setHostName(host);
        }
        if (port != null) {
            jedisConnectionFactory.setPort(port);
        }
        jedisConnectionFactory.afterPropertiesSet();
        connectionFactory = jedisConnectionFactory;
        return jedisConnectionFactory;
    }

    private RedisTemplate createDefaultTemplate() {
View Full Code Here

Examples of org.springframework.data.redis.connection.jredis.JredisConnectionFactory.afterPropertiesSet()

    // JRedis
    JredisConnectionFactory jredisConnFactory = new JredisConnectionFactory();
    jredisConnFactory.setPort(SettingsUtils.getPort());
    jredisConnFactory.setHostName(SettingsUtils.getHost());
    jredisConnFactory.afterPropertiesSet();

    StringRedisTemplate templateJR = new StringRedisTemplate(jredisConnFactory);
    DefaultRedisMap mapJR = new DefaultRedisMap("bound:key:mapJR", templateJR);
    // Skip list and set. Rename in Collections uses Redis tx, not supported by JRedis
View Full Code Here

Examples of org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.afterPropertiesSet()

    // Lettuce
    LettuceConnectionFactory lettuceConnFactory = new LettuceConnectionFactory();
    lettuceConnFactory.setPort(SettingsUtils.getPort());
    lettuceConnFactory.setHostName(SettingsUtils.getHost());
    lettuceConnFactory.afterPropertiesSet();

    StringRedisTemplate templateLT = new StringRedisTemplate(lettuceConnFactory);
    DefaultRedisMap mapLT = new DefaultRedisMap("bound:key:mapLT", templateLT);
    DefaultRedisSet setLT = new DefaultRedisSet("bound:key:setLT", templateLT);
    RedisList listLT = new DefaultRedisList("bound:key:listLT", templateLT);
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.