/** * Factory method for constructing {@link ObjectReader} with * default settings. Note that the resulting instance is NOT usable as is, * without defining expected value type. * * @since 1.6 */ public ObjectReader reader() { return new ObjectReader(this, copyDeserializationConfig()) .withInjectableValues(_injectableValues); }
/** * Factory method for constructing {@link ObjectReader} with * default settings. Note that the resulting instance is NOT usable as is, * without defining expected value type. * * @since 1.6 */ public ObjectReader reader() { return new ObjectReader(this, copyDeserializationConfig()) .withInjectableValues(_injectableValues); }
/** * Factory method for constructing {@link ObjectReader} with * default settings. Note that the resulting instance is NOT usable as is, * without defining expected value type. * * @since 1.6 */ public ObjectReader reader() { return new ObjectReader(this, copyDeserializationConfig()) .withInjectableValues(_injectableValues); }
/** * Factory method for constructing {@link ObjectReader} with * default settings. Note that the resulting instance is NOT usable as is, * without defining expected value type. * * @since 1.6 */ public ObjectReader reader() { return new ObjectReader(this, copyDeserializationConfig()) .withInjectableValues(_injectableValues); }
private static ConfigTemplate parseInput(InputStream inputStream, Plugin plugin) { ObjectMapper mapper = new ObjectMapper(); InjectableValues inject = new InjectableValues.Std() .addValue("plugin", plugin); try { return mapper.reader(ConfigTemplateImpl.class).withInjectableValues(inject).readValue(inputStream); } catch (IOException e) { throw new IllegalArgumentException("Error while parsing configuration file.", e); } catch (NullPointerException e) { throw new IllegalArgumentException("Invalid configuration file.", e); } } }