javax.json.spi.JsonProvider.createReaderFactory()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(7.9k)|赞(0)|评价(0)|浏览(83)

本文整理了Java中javax.json.spi.JsonProvider.createReaderFactory()方法的一些代码示例,展示了JsonProvider.createReaderFactory()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JsonProvider.createReaderFactory()方法的具体详情如下:
包路径:javax.json.spi.JsonProvider
类名称:JsonProvider
方法名:createReaderFactory

JsonProvider.createReaderFactory介绍

[英]Creates a reader factory for creating 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.
[中]创建用于创建JsonReader对象的读取器工厂。工厂使用特定于提供程序的配置属性的指定映射进行配置。提供程序实现应忽略映射中指定的任何不受支持的配置属性。

代码示例

代码示例来源:origin: wildfly/wildfly

public static JsonReaderFactory createReaderFactory(Map<String, ?> config) {
 return provider.createReaderFactory(config);
}

代码示例来源:origin: wildfly/wildfly

/**
 * 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);
}

代码示例来源:origin: org.apache.activemq/artemis-jms-client-all

@Override
public JsonReaderFactory createReaderFactory(final Map<String, ?> stringMap) {
  return DELEGATE.createReaderFactory(stringMap);
}

代码示例来源:origin: apache/activemq-artemis

@Override
public JsonReaderFactory createReaderFactory(final Map<String, ?> stringMap) {
  return DELEGATE.createReaderFactory(stringMap);
}

代码示例来源:origin: apache/activemq-artemis

@Override
public JsonReaderFactory createReaderFactory(final Map<String, ?> stringMap) {
  return DELEGATE.createReaderFactory(stringMap);
}

代码示例来源:origin: org.apache.johnzon/johnzon-core

@Override
public JsonReaderFactory createReaderFactory(final Map<String, ?> stringMap) {
  return DELEGATE.createReaderFactory(stringMap);
}

代码示例来源:origin: org.apache.johnzon/johnzon-core

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;
  }
}

代码示例来源:origin: apache/johnzon

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;
  }
}

代码示例来源:origin: javax.json/javax.json-api

/**
 * 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);
}

代码示例来源:origin: jakarta.json/jakarta.json-api

/**
 * 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);
}

代码示例来源:origin: org.apache.meecrowave/meecrowave-specs-api

public static JsonReaderFactory createReaderFactory(Map<String, ?> config)
{
  return JsonProvider.provider().createReaderFactory(config);
}

代码示例来源:origin: javax/javaee-web-api

/**
 * 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);
}

代码示例来源:origin: org.apache.geronimo.specs/geronimo-json_1.1_spec

public static JsonReaderFactory createReaderFactory(Map<String, ?> config)
{
  return JsonProvider.provider().createReaderFactory(config);
}

代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/**
 * 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);
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

/**
 * 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);
}

代码示例来源:origin: io.virtdata/virtdata-lib-realer

/**
 * 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);
}

代码示例来源:origin: net.shibboleth.idp/idp-authn-api

/**
 * Constructor.
 */
public AbstractPrincipalSerializer() {
  final JsonProvider provider = JsonProvider.provider();
  generatorFactory = provider.createGeneratorFactory(null);
  readerFactory = provider.createReaderFactory(null);
}

代码示例来源:origin: net.shibboleth.idp/idp-consent-impl

/** Constructor. */
public CollectionSerializer() {
  final JsonProvider provider = JsonProvider.provider();
  generatorFactory = provider.createGeneratorFactory(null);
  readerFactory = provider.createReaderFactory(null);
}

代码示例来源:origin: fabienrenaud/java-json-benchmark

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();
}

代码示例来源:origin: net.shibboleth.idp/idp-consent-impl

/** Constructor. */
public ConsentSerializer() {
  final JsonProvider provider = JsonProvider.provider();
  generatorFactory = provider.createGeneratorFactory(null);
  readerFactory = provider.createReaderFactory(null);
  symbolics = ImmutableBiMap.of();
}

相关文章