Package com.fasterxml.jackson.databind.ser

Examples of com.fasterxml.jackson.databind.ser.DefaultSerializerProvider


        if (normalize)
            enable(SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS);

        // this provider toStrings all unknown classes and converts keys in Map objects that are Object to String.
        final DefaultSerializerProvider provider = new GraphSONSerializerProvider();
        provider.setDefaultKeySerializer(new GraphSONModule.GraphSONKeySerializer());
        setSerializerProvider(provider);

        registerModule(new GraphSONModule(normalize));
        if (custom != null) this.registerModule(custom);
View Full Code Here


                SerializerFactory.class);
    }

    public static SerializerProvider getSerializerProvider(
            ObjectMapper objectMapper) {
        DefaultSerializerProvider serializerProvider = (DefaultSerializerProvider) objectMapper
                .getSerializerProvider();
        return serializerProvider.createInstance(
                objectMapper.getSerializationConfig(),
                getSerializerFactory(objectMapper));
    }
View Full Code Here

TOP

Related Classes of com.fasterxml.jackson.databind.ser.DefaultSerializerProvider

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.