Examples of PassThroughConverter


Examples of com.basho.riak.client.convert.PassThroughConverter

     */
    public MultiFetchObject<IRiakObject> multiFetch(String[] keys)
    {
        return new MultiFetchObject<IRiakObject>(client, name, Arrays.asList(keys), retrier)
        .withResolver(new DefaultResolver<IRiakObject>())
        .withConverter(new PassThroughConverter());
    }
View Full Code Here

Examples of com.basho.riak.client.convert.PassThroughConverter

                } else {
                    original.setValue(value);
                    return original;
                }
            }
        }).withResolver(new DefaultResolver<IRiakObject>()).withConverter(new PassThroughConverter());
    }
View Full Code Here

Examples of com.basho.riak.client.convert.PassThroughConverter

    }

    @SuppressWarnings("unchecked") private <T> Converter<T> getDefaultConverter(Class<T> clazz, String key) {
        Converter<T> converter;
        if (IRiakObject.class.isAssignableFrom(clazz)) {
            converter = (Converter<T>) new PassThroughConverter();
        } else {
            if (key != null) {
                converter = new JSONConverter<T>(clazz, name, key);
            } else {
                converter = new JSONConverter<T>(clazz, name);
View Full Code Here

Examples of com.basho.riak.client.convert.PassThroughConverter

     * @see FetchObject
     */
    public FetchObject<IRiakObject> fetch(String key) {
        return new FetchObject<IRiakObject>(client, name, key, retrier)
        .withResolver(new DefaultResolver<IRiakObject>())
        .withConverter(new PassThroughConverter());
    }
View Full Code Here

Examples of com.basho.riak.client.convert.PassThroughConverter

     */
    public MultiFetchObject<IRiakObject> multiFetch(String[] keys)
    {
        return new MultiFetchObject<IRiakObject>(client, name, Arrays.asList(keys), retrier)
        .withResolver(new DefaultResolver<IRiakObject>())
        .withConverter(new PassThroughConverter());
    }
View Full Code Here

Examples of com.basho.riak.client.convert.PassThroughConverter

                } else {
                    original.setValue(value);
                    return original;
                }
            }
        }).withResolver(new DefaultResolver<IRiakObject>()).withConverter(new PassThroughConverter());
    }
View Full Code Here

Examples of com.basho.riak.client.convert.PassThroughConverter

    }

    @SuppressWarnings("unchecked") private <T> Converter<T> getDefaultConverter(Class<T> clazz, String key) {
        Converter<T> converter;
        if (IRiakObject.class.isAssignableFrom(clazz)) {
            converter = (Converter<T>) new PassThroughConverter();
        } else {
            if (key != null) {
                converter = new JSONConverter<T>(clazz, name, key);
            } else {
                converter = new JSONConverter<T>(clazz, name);
View Full Code Here

Examples of com.basho.riak.client.convert.PassThroughConverter

     * @see FetchObject
     */
    public FetchObject<IRiakObject> fetch(String key) {
        return new FetchObject<IRiakObject>(client, name, key, retrier)
        .withResolver(new DefaultResolver<IRiakObject>())
        .withConverter(new PassThroughConverter());
    }
View Full Code Here

Examples of ma.glasnost.orika.converter.builtin.PassThroughConverter

     * @throws DatatypeConfigurationException
     */
    @Test
    public void overrideDefaultCloneableToImmutable() throws DatatypeConfigurationException {
       
        PassThroughConverter cc = new PassThroughConverter(Date.class, Calendar.class);
       
        MapperFactory factory = MappingUtil.getMapperFactory();
        factory.getConverterFactory().registerConverter(cc);
       
        GregorianCalendar cal = new GregorianCalendar();
View Full Code Here

Examples of ma.glasnost.orika.converter.builtin.PassThroughConverter

public class PassThroughConverterTestCase {
   
    @Test
    public void testPassThroughConverter() {
       
      PassThroughConverter ptc = new PassThroughConverter(A.class);
     
     
      MapperFactory factory = MappingUtil.getMapperFactory();
       
        factory.getConverterFactory().registerConverter(ptc);
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.