Examples of StringObjectFactory


Examples of flexjson.factories.StringObjectFactory

    factories.put(boolean.class, new BooleanObjectFactory());
    factories.put(Character.class, new CharacterObjectFactory());
    factories.put(char.class, new CharacterObjectFactory());
    factories.put(Enum.class, new EnumObjectFactory());
    //        factories.put( Date.class, new DateObjectFactory() );
    factories.put(String.class, new StringObjectFactory());
    factories.put(Array.class, new ArrayObjectFactory());
    //        factories.put( BigDecimal.class, new BigDecimalFactory() );
    //        factories.put( BigInteger.class, new BigIntegerFactory() );
  }
View Full Code Here

Examples of org.springframework.data.keyvalue.redis.support.collections.StringObjectFactory

    jredisConnFactory.afterPropertiesSet();

    StringRedisTemplate templateJS = new StringRedisTemplate(jedisConnFactory);
    StringRedisTemplate templateJR = new StringRedisTemplate(jredisConnFactory);

    StringObjectFactory sof = new StringObjectFactory();

    DefaultRedisMap mapJS = new DefaultRedisMap("bound:key:map", templateJS);

    DefaultRedisSet setJS = new DefaultRedisSet("bound:key:set", templateJS);
View Full Code Here

Examples of org.springframework.data.keyvalue.redis.support.collections.StringObjectFactory

*/
public class PubSubTestParams {

  public static Collection<Object[]> testParams() {
    // create Jedis Factory
    ObjectFactory<String> stringFactory = new StringObjectFactory();
    ObjectFactory<Person> personFactory = new PersonObjectFactory();

    JedisConnectionFactory jedisConnFactory = new JedisConnectionFactory();
    jedisConnFactory.setUsePool(true);
    jedisConnFactory.setPort(SettingsUtils.getPort());
View Full Code Here

Examples of org.springframework.data.redis.StringObjectFactory

    StringRedisTemplate templateSRP = new StringRedisTemplate(srpConnFactory);
    DefaultRedisMap mapSRP = new DefaultRedisMap("bound:key:mapSRP", templateSRP);
    DefaultRedisSet setSRP = new DefaultRedisSet("bound:key:setSRP", templateSRP);
    RedisList listSRP = new DefaultRedisList("bound:key:listSRP", templateSRP);

    StringObjectFactory sof = new StringObjectFactory();

    return Arrays.asList(new Object[][] {
        { new RedisAtomicInteger("bound:key:int", jedisConnFactory), sof, templateJS },
        { new RedisAtomicLong("bound:key:long", jedisConnFactory), sof, templateJS }, { list, sof, templateJS },
        { setJS, sof, templateJS }, { mapJS, sof, templateJS },
View Full Code Here

Examples of org.springframework.data.redis.StringObjectFactory

    Jackson2JsonRedisSerializer<Person> jackson2JsonSerializer = new Jackson2JsonRedisSerializer<Person>(Person.class);
    Jackson2JsonRedisSerializer<String> jackson2JsonStringSerializer = new Jackson2JsonRedisSerializer<String>(
        String.class);

    // create Jedis Factory
    ObjectFactory<String> stringFactory = new StringObjectFactory();
    ObjectFactory<String> longFactory = new LongAsStringObjectFactory();
    ObjectFactory<String> doubleFactory = new DoubleAsStringObjectFactory();

    JedisConnectionFactory jedisConnFactory = new JedisConnectionFactory();
    jedisConnFactory.setUsePool(true);
View Full Code Here

Examples of org.springframework.data.redis.StringObjectFactory

    JacksonJsonRedisSerializer<Person> jsonSerializer = new JacksonJsonRedisSerializer<Person>(Person.class);
    Jackson2JsonRedisSerializer<Person> jackson2JsonSerializer = new Jackson2JsonRedisSerializer<Person>(Person.class);
    StringRedisSerializer stringSerializer = new StringRedisSerializer();

    // create Jedis Factory
    ObjectFactory<String> stringFactory = new StringObjectFactory();
    ObjectFactory<Person> personFactory = new PersonObjectFactory();
    ObjectFactory<byte[]> rawFactory = new RawObjectFactory();

    JedisConnectionFactory jedisConnFactory = new JedisConnectionFactory();
    jedisConnFactory.setUsePool(true);
View Full Code Here

Examples of org.springframework.data.redis.StringObjectFactory

    PoolConfig defaultPoolConfig = new PoolConfig();
    defaultPoolConfig.setMaxActive(1000);

    // create Jedis Factory
    ObjectFactory<String> stringFactory = new StringObjectFactory();
    ObjectFactory<Person> personFactory = new PersonObjectFactory();
    ObjectFactory<String> doubleFactory = new DoubleAsStringObjectFactory();
    ObjectFactory<String> longFactory = new LongAsStringObjectFactory();
    ObjectFactory<byte[]> rawFactory = new RawObjectFactory();
View Full Code Here

Examples of org.springframework.data.redis.StringObjectFactory

    this.hashValueFactory = hashValueFactory;
  }

  @Parameters
  public static Collection<Object[]> testParams() {
    ObjectFactory<String> stringFactory = new StringObjectFactory();
    ObjectFactory<byte[]> rawFactory = new RawObjectFactory();

    JedisConnectionFactory jedisConnectionFactory = new JedisConnectionFactory();
    jedisConnectionFactory.setPort(SettingsUtils.getPort());
    jedisConnectionFactory.setHostName(SettingsUtils.getHost());
View Full Code Here

Examples of org.springframework.data.redis.StringObjectFactory

  /**
   * @see DATAREDIS-241
   */
  public static Collection<Object[]> testParams() {

    ObjectFactory<String> stringFactory = new StringObjectFactory();
    ObjectFactory<Long> longFactory = new LongObjectFactory();
    ObjectFactory<Double> doubleFactory = new DoubleObjectFactory();
    ObjectFactory<byte[]> rawFactory = new RawObjectFactory();
    ObjectFactory<Person> personFactory = new PersonObjectFactory();

View Full Code Here

Examples of org.springframework.data.redis.StringObjectFactory

*/
public class PubSubTestParams {

  public static Collection<Object[]> testParams() {
    // create Jedis Factory
    ObjectFactory<String> stringFactory = new StringObjectFactory();
    ObjectFactory<Person> personFactory = new PersonObjectFactory();
    ObjectFactory<byte[]> rawFactory = new RawObjectFactory();

    JedisConnectionFactory jedisConnFactory = new JedisConnectionFactory();
    jedisConnFactory.setUsePool(true);
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.