Tabnine Logo
DefaultDeserializationContext
Code IndexAdd Tabnine to your IDE (free)

How to use
DefaultDeserializationContext
in
com.fasterxml.jackson.databind.deser

Best Java code snippets using com.fasterxml.jackson.databind.deser.DefaultDeserializationContext (Showing top 20 results out of 315)

Refine searchRefine arrow

  • DeserializerFactory
  • ObjectMapper
origin: redisson/redisson

/**
 * Internal helper method called to create an instance of {@link DeserializationContext}
 * for deserializing a single root value.
 * Can be overridden if a custom context is needed.
 */
protected DefaultDeserializationContext createDeserializationContext(JsonParser p) {
  return _context.createInstance(_config, p, _injectableValues);
}
origin: redisson/redisson

/**
 * Method similar to {@link #canDeserialize(JavaType)} but that can return
 * actual {@link Throwable} that was thrown when trying to construct
 * serializer: this may be useful in figuring out what the actual problem is.
 * 
 * @since 2.3
 */
public boolean canDeserialize(JavaType type, AtomicReference<Throwable> cause)
{
  return createDeserializationContext(null,
      getDeserializationConfig()).hasValueDeserializerFor(type, cause);
}

origin: redisson/redisson

@Override
public void addKeyDeserializers(KeyDeserializers d) {
  DeserializerFactory df = _deserializationContext._factory.withAdditionalKeyDeserializers(d);
  _deserializationContext = _deserializationContext.with(df);
}
origin: redisson/redisson

if (!isEnabled(DeserializationFeature.FAIL_ON_UNRESOLVED_OBJECT_IDS)) {
  return;
  if (tryToResolveUnresolvedObjectId(roid)) {
    continue;
    exception = new UnresolvedForwardReference(getParser(), "Unresolved forward references for: ");
origin: redisson/redisson

@Override
public void addBeanDeserializerModifier(BeanDeserializerModifier modifier) {
  DeserializerFactory df = _deserializationContext._factory.withDeserializerModifier(modifier);
  _deserializationContext = _deserializationContext.with(df);
}

origin: redisson/redisson

@Override
public void addAbstractTypeResolver(AbstractTypeResolver resolver) {
  DeserializerFactory df = _deserializationContext._factory.withAbstractTypeResolver(resolver);
  _deserializationContext = _deserializationContext.with(df);
}
origin: redisson/redisson

@Override
public void addValueInstantiators(ValueInstantiators instantiators) {
  DeserializerFactory df = _deserializationContext._factory.withValueInstantiators(instantiators);
  _deserializationContext = _deserializationContext.with(df);
}
origin: redisson/redisson

@Override
public void addDeserializers(Deserializers d) {
  DeserializerFactory df = _deserializationContext._factory.withAdditionalDeserializers(d);
  _deserializationContext = _deserializationContext.with(df);
}
origin: redisson/redisson

    _mixIns, rootNames,  _configOverrides);
_serializerProvider = src._serializerProvider.copy();
_deserializationContext = src._deserializationContext.copy();
origin: com.eclipsesource.jaxrs/jersey-all

@Override
public void checkUnresolvedObjectId() throws UnresolvedForwardReference
{
  if (_objectIds == null) {
    return;
  }
  // 29-Dec-2014, tatu: As per [databind#299], may also just let unresolved refs be...
  if (!isEnabled(DeserializationFeature.FAIL_ON_UNRESOLVED_OBJECT_IDS)) {
    return;
  }
  UnresolvedForwardReference exception = null;
  for (Entry<IdKey,ReadableObjectId> entry : _objectIds.entrySet()) {
    ReadableObjectId roid = entry.getValue();
    if (roid.hasReferringProperties()) {
      if (exception == null) {
        exception = new UnresolvedForwardReference("Unresolved forward references for: ");
      }
      for (Iterator<Referring> iterator = roid.referringProperties(); iterator.hasNext(); ) {
        Referring referring = iterator.next();
        exception.addUnresolvedId(roid.getKey().key, referring.getBeanType(), referring.getLocation());
      }
    }
  }
  if (exception != null) {
    throw exception;
  }
}
origin: redisson/redisson

ReadableObjectId entry = createReadableObjectId(key);
entry.setResolver(resolver);
_objectIds.put(key, entry);
origin: com.eclipsesource.jaxrs/jersey-all

@Override
public void addBeanDeserializerModifier(BeanDeserializerModifier modifier) {
  DeserializerFactory df = mapper._deserializationContext._factory.withDeserializerModifier(modifier);
  mapper._deserializationContext = mapper._deserializationContext.with(df);
}

origin: hstaudacher/osgi-jax-rs-connector

@Override
public void addAbstractTypeResolver(AbstractTypeResolver resolver) {
  DeserializerFactory df = mapper._deserializationContext._factory.withAbstractTypeResolver(resolver);
  mapper._deserializationContext = mapper._deserializationContext.with(df);
}
origin: com.jwebmp.jackson.core/jackson-databind

@Override
public void addValueInstantiators(ValueInstantiators instantiators) {
  DeserializerFactory df = _deserializationContext._factory.withValueInstantiators(instantiators);
  _deserializationContext = _deserializationContext.with(df);
}
origin: com.eclipsesource.jaxrs/jersey-all

@Override
public void addDeserializers(Deserializers d) {
  DeserializerFactory df = mapper._deserializationContext._factory.withAdditionalDeserializers(d);
  mapper._deserializationContext = mapper._deserializationContext.with(df);
}
origin: com.jwebmp.jackson.core/jackson-databind

if (!isEnabled(DeserializationFeature.FAIL_ON_UNRESOLVED_OBJECT_IDS)) {
  return;
  if (tryToResolveUnresolvedObjectId(roid)) {
    continue;
    exception = new UnresolvedForwardReference(getParser(), "Unresolved forward references for: ");
origin: Nextdoor/bender

@Override
public DefaultDeserializationContext copy() {
  if (getClass() != Impl.class) {
    return super.copy();
  }
  return new Impl(this);
}

origin: hstaudacher/osgi-jax-rs-connector

@Override
public void checkUnresolvedObjectId() throws UnresolvedForwardReference
{
  if (_objectIds == null) {
    return;
  }
  // 29-Dec-2014, tatu: As per [databind#299], may also just let unresolved refs be...
  if (!isEnabled(DeserializationFeature.FAIL_ON_UNRESOLVED_OBJECT_IDS)) {
    return;
  }
  UnresolvedForwardReference exception = null;
  for (Entry<IdKey,ReadableObjectId> entry : _objectIds.entrySet()) {
    ReadableObjectId roid = entry.getValue();
    if (roid.hasReferringProperties()) {
      if (exception == null) {
        exception = new UnresolvedForwardReference("Unresolved forward references for: ");
      }
      for (Iterator<Referring> iterator = roid.referringProperties(); iterator.hasNext(); ) {
        Referring referring = iterator.next();
        exception.addUnresolvedId(roid.getKey().key, referring.getBeanType(), referring.getLocation());
      }
    }
  }
  if (exception != null) {
    throw exception;
  }
}
origin: com.jwebmp.jackson.core/jackson-databind

ReadableObjectId entry = createReadableObjectId(key);
entry.setResolver(resolver);
_objectIds.put(key, entry);
origin: redisson/redisson

/**
 * Method that can be called to check whether mapper thinks
 * it could deserialize an Object of given type.
 * Check is done by checking whether a registered deserializer can
 * be found or built for the type; if not (either by no mapping being
 * found, or through an <code>Exception</code> being thrown, false
 * is returned.
 *<p>
 * <b>NOTE</b>: in case an exception is thrown during course of trying
 * co construct matching deserializer, it will be effectively swallowed.
 * If you want access to that exception, call
 * {@link #canDeserialize(JavaType, AtomicReference)} instead.
 *
 * @return True if mapper can find a serializer for instances of
 *  given class (potentially serializable), false otherwise (not
 *  serializable)
 */
public boolean canDeserialize(JavaType type)
{
  return createDeserializationContext(null,
      getDeserializationConfig()).hasValueDeserializerFor(type, null);
}
com.fasterxml.jackson.databind.deserDefaultDeserializationContext

Javadoc

Complete DeserializationContext implementation that adds extended API for ObjectMapper (and ObjectReader) to call, as well as implements certain parts that base class has left abstract. The remaining abstract methods ( #createInstance, #with) are left so that custom implementations will properly implement them to return intended subtype.

Most used methods

  • createInstance
    Method called to create actual usable per-deserialization context instance.
  • hasValueDeserializerFor
  • with
    Fluent factory method used for constructing a blueprint instance with different factory
  • copy
    Method needed to ensure that ObjectMapper#copy will work properly; specifically, that caches are cle
  • isEnabled
  • createReadableObjectId
    Overridable factory method to create a new instance of ReadableObjectId or its subclass. It is meant
  • getParser
  • tryToResolveUnresolvedObjectId
    Overridable helper method called to try to resolve otherwise unresolvable ReadableObjectId; and if t
  • assignAndReturnParser
  • findObjectId

Popular in Java

  • Making http post requests using okhttp
  • putExtra (Intent)
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now