public static JsonReaderFactory createReaderFactory(Map<String, ?> config) { return provider.createReaderFactory(config); }
/** * Creates a reader factory for creating {@link JsonReader} objects. * The factory is configured with the specified map of provider specific * configuration properties. Provider implementations should ignore any * unsupported configuration properties specified in the map. * * @param config a map of provider specific properties to configure the * JSON readers. The map may be empty or null * @return a JSON reader factory */ public static JsonReaderFactory createReaderFactory(Map<String, ?> config) { return JsonProvider.provider().createReaderFactory(config); }
@Override public JsonReaderFactory createReaderFactory(final Map<String, ?> stringMap) { return DELEGATE.createReaderFactory(stringMap); }
@Override public JsonReaderFactory createReaderFactory(final Map<String, ?> stringMap) { return DELEGATE.createReaderFactory(stringMap); }
@Override public JsonReaderFactory createReaderFactory(final Map<String, ?> stringMap) { return DELEGATE.createReaderFactory(stringMap); }
@Override public JsonReaderFactory createReaderFactory(final Map<String, ?> stringMap) { return DELEGATE.createReaderFactory(stringMap); }
private static JsonReaderFactory factory() { // avoid to create too much instances of provider or factories, not needed JsonReaderFactory factory = FACTORY_ATOMIC_REFERENCE.get(); if (factory == null) { FACTORY_ATOMIC_REFERENCE.compareAndSet(null, JsonProvider.provider().createReaderFactory(Collections.<String, Object>emptyMap())); factory = FACTORY_ATOMIC_REFERENCE.get(); } return factory; } }
private static JsonReaderFactory factory() { // avoid to create too much instances of provider or factories, not needed JsonReaderFactory factory = FACTORY_ATOMIC_REFERENCE.get(); if (factory == null) { FACTORY_ATOMIC_REFERENCE.compareAndSet(null, JsonProvider.provider().createReaderFactory(Collections.<String, Object>emptyMap())); factory = FACTORY_ATOMIC_REFERENCE.get(); } return factory; } }
/** * Creates a reader factory for creating {@link JsonReader} objects. * The factory is configured with the specified map of provider specific * configuration properties. Provider implementations should ignore any * unsupported configuration properties specified in the map. * * @param config a map of provider specific properties to configure the * JSON readers. The map may be empty or null * @return a JSON reader factory */ public static JsonReaderFactory createReaderFactory(Map<String, ?> config) { return JsonProvider.provider().createReaderFactory(config); }
/** * Creates a reader factory for creating {@link JsonReader} objects. * The factory is configured with the specified map of provider specific * configuration properties. Provider implementations should ignore any * unsupported configuration properties specified in the map. * * @param config a map of provider specific properties to configure the * JSON readers. The map may be empty or null * @return a JSON reader factory */ public static JsonReaderFactory createReaderFactory(Map<String, ?> config) { return JsonProvider.provider().createReaderFactory(config); }
public static JsonReaderFactory createReaderFactory(Map<String, ?> config) { return JsonProvider.provider().createReaderFactory(config); }
/** * Creates a reader factory for creating {@link JsonReader} objects. * The factory is configured with the specified map of provider specific * configuration properties. Provider implementations should ignore any * unsupported configuration properties specified in the map. * * @param config a map of provider specific properties to configure the * JSON readers. The map may be empty or null * @return a JSON reader factory */ public static JsonReaderFactory createReaderFactory(Map<String, ?> config) { return JsonProvider.provider().createReaderFactory(config); }
public static JsonReaderFactory createReaderFactory(Map<String, ?> config) { return JsonProvider.provider().createReaderFactory(config); }
/** * Creates a reader factory for creating {@link JsonReader} objects. * The factory is configured with the specified map of provider specific * configuration properties. Provider implementations should ignore any * unsupported configuration properties specified in the map. * * @param config a map of provider specific properties to configure the * JSON readers. The map may be empty or null * @return a JSON reader factory */ public static JsonReaderFactory createReaderFactory(Map<String, ?> config) { return JsonProvider.provider().createReaderFactory(config); }
/** * Creates a reader factory for creating {@link JsonReader} objects. * The factory is configured with the specified map of provider specific * configuration properties. Provider implementations should ignore any * unsupported configuration properties specified in the map. * * @param config a map of provider specific properties to configure the * JSON readers. The map may be empty or null * @return a JSON reader factory */ public static JsonReaderFactory createReaderFactory(Map<String, ?> config) { return JsonProvider.provider().createReaderFactory(config); }
/** * Creates a reader factory for creating {@link JsonReader} objects. * The factory is configured with the specified map of provider specific * configuration properties. Provider implementations should ignore any * unsupported configuration properties specified in the map. * * @param config a map of provider specific properties to configure the * JSON readers. The map may be empty or null * @return a JSON reader factory */ public static JsonReaderFactory createReaderFactory(Map<String, ?> config) { return JsonProvider.provider().createReaderFactory(config); }
/** * Constructor. */ public AbstractPrincipalSerializer() { final JsonProvider provider = JsonProvider.provider(); generatorFactory = provider.createGeneratorFactory(null); readerFactory = provider.createReaderFactory(null); }
/** Constructor. */ public CollectionSerializer() { final JsonProvider provider = JsonProvider.provider(); generatorFactory = provider.createGeneratorFactory(null); readerFactory = provider.createReaderFactory(null); }
public UsersJsonProvider() { jacksonAfterburner.registerModule(new AfterburnerModule()); jsonioStreamOptions.put(JsonReader.USE_MAPS, true); jsonioStreamOptions.put(JsonWriter.TYPE, false); // set johnson JsonReader (default is `JsonProvider.provider()`) javax.json.spi.JsonProvider johnzonProvider = new JsonProviderImpl(); johnzon = new org.apache.johnzon.mapper.MapperBuilder() .setReaderFactory(johnzonProvider.createReaderFactory(Collections.emptyMap())) .setGeneratorFactory(johnzonProvider.createGeneratorFactory(Collections.emptyMap())) .setAccessModeName("field") // default is "strict-method" which doesn't work nicely with public attributes .build(); }
/** Constructor. */ public ConsentSerializer() { final JsonProvider provider = JsonProvider.provider(); generatorFactory = provider.createGeneratorFactory(null); readerFactory = provider.createReaderFactory(null); symbolics = ImmutableBiMap.of(); }