Java7Support.hasCreatorAnnotation
Code IndexAdd Codota to your IDE (free)

Best code snippets using com.fasterxml.jackson.databind.ext.Java7Support.hasCreatorAnnotation(Showing top 8 results out of 315)

origin: com.fasterxml.jackson.core/jackson-databind

@Override
public JsonCreator.Mode findCreatorAnnotation(MapperConfig<?> config, Annotated a) {
  JsonCreator ann = _findAnnotation(a, JsonCreator.class);
  if (ann != null) {
    return ann.mode();
  }
  if (_cfgConstructorPropertiesImpliesCreator
      && config.isEnabled(MapperFeature.INFER_CREATOR_FROM_CONSTRUCTOR_PROPERTIES)
    ) {
    if (a instanceof AnnotatedConstructor) {
      if (_java7Helper != null) {
        Boolean b = _java7Helper.hasCreatorAnnotation(a);
        if ((b != null) && b.booleanValue()) {
          // 13-Sep-2016, tatu: Judgment call, but I don't think JDK ever implies
          //    use of delegate; assumes as-properties implicitly
          return JsonCreator.Mode.PROPERTIES;
        }
      }
    }
  }
  return null;
}
origin: com.fasterxml.jackson.core/jackson-databind

@Override
@Deprecated // since 2.9
public boolean hasCreatorAnnotation(Annotated a)
{
  /* No dedicated disabling; regular @JsonIgnore used if needs to be
   * ignored (and if so, is handled prior to this method getting called)
   */
   JsonCreator ann = _findAnnotation(a, JsonCreator.class);
   if (ann != null) {
     return (ann.mode() != JsonCreator.Mode.DISABLED);
   }
   // 19-Apr-2016, tatu: As per [databind#1197], [databind#1122] (and some related),
   //    may or may not consider it a creator
   if (_cfgConstructorPropertiesImpliesCreator ) {
     if (a instanceof AnnotatedConstructor) {
       if (_java7Helper != null) {
         Boolean b = _java7Helper.hasCreatorAnnotation(a);
         if (b != null) {
           return b.booleanValue();
         }
       }
     }
   }
   return false;
}
origin: Nextdoor/bender

@Override
public boolean hasCreatorAnnotation(Annotated a)
{
  /* No dedicated disabling; regular @JsonIgnore used if needs to be
   * ignored (and if so, is handled prior to this method getting called)
   */
   JsonCreator ann = _findAnnotation(a, JsonCreator.class);
   if (ann != null) {
     return (ann.mode() != JsonCreator.Mode.DISABLED);
   }
   // 19-Apr-2016, tatu: As per [databind#1197], [databind#1122] (and some related),
   //    may or may not consider it a creator
   if (_cfgConstructorPropertiesImpliesCreator ) {
     if (a instanceof AnnotatedConstructor) {
       if (_java7Helper != null) {
         Boolean b = _java7Helper.hasCreatorAnnotation(a);
         if (b != null) {
           return b.booleanValue();
         }
       }
     }
   }
   return false;
}
origin: com.fasterxml.jackson.core/jackson-databind

@Override
public JsonCreator.Mode findCreatorAnnotation(MapperConfig<?> config, Annotated a) {
  JsonCreator ann = _findAnnotation(a, JsonCreator.class);
  if (ann != null) {
    return ann.mode();
  }
  if (_cfgConstructorPropertiesImpliesCreator
      && config.isEnabled(MapperFeature.INFER_CREATOR_FROM_CONSTRUCTOR_PROPERTIES)
    ) {
    if (a instanceof AnnotatedConstructor) {
      if (_java7Helper != null) {
        Boolean b = _java7Helper.hasCreatorAnnotation(a);
        if ((b != null) && b.booleanValue()) {
          // 13-Sep-2016, tatu: Judgment call, but I don't think JDK ever implies
          //    use of delegate; assumes as-properties implicitly
          return JsonCreator.Mode.PROPERTIES;
        }
      }
    }
  }
  return null;
}
origin: com.fasterxml.jackson.core/jackson-databind

@Override
public JsonCreator.Mode findCreatorAnnotation(MapperConfig<?> config, Annotated a) {
  JsonCreator ann = _findAnnotation(a, JsonCreator.class);
  if (ann != null) {
    return ann.mode();
  }
  if (_cfgConstructorPropertiesImpliesCreator
      && config.isEnabled(MapperFeature.INFER_CREATOR_FROM_CONSTRUCTOR_PROPERTIES)
    ) {
    if (a instanceof AnnotatedConstructor) {
      if (_java7Helper != null) {
        Boolean b = _java7Helper.hasCreatorAnnotation(a);
        if ((b != null) && b.booleanValue()) {
          // 13-Sep-2016, tatu: Judgment call, but I don't think JDK ever implies
          //    use of delegate; assumes as-properties implicitly
          return JsonCreator.Mode.PROPERTIES;
        }
      }
    }
  }
  return null;
}
origin: com.fasterxml.jackson.core/jackson-databind

@Override
@Deprecated // since 2.9
public boolean hasCreatorAnnotation(Annotated a)
{
  /* No dedicated disabling; regular @JsonIgnore used if needs to be
   * ignored (and if so, is handled prior to this method getting called)
   */
   JsonCreator ann = _findAnnotation(a, JsonCreator.class);
   if (ann != null) {
     return (ann.mode() != JsonCreator.Mode.DISABLED);
   }
   // 19-Apr-2016, tatu: As per [databind#1197], [databind#1122] (and some related),
   //    may or may not consider it a creator
   if (_cfgConstructorPropertiesImpliesCreator ) {
     if (a instanceof AnnotatedConstructor) {
       if (_java7Helper != null) {
         Boolean b = _java7Helper.hasCreatorAnnotation(a);
         if (b != null) {
           return b.booleanValue();
         }
       }
     }
   }
   return false;
}
origin: com.fasterxml.jackson.core/jackson-databind

@Override
@Deprecated // since 2.9
public boolean hasCreatorAnnotation(Annotated a)
{
  /* No dedicated disabling; regular @JsonIgnore used if needs to be
   * ignored (and if so, is handled prior to this method getting called)
   */
   JsonCreator ann = _findAnnotation(a, JsonCreator.class);
   if (ann != null) {
     return (ann.mode() != JsonCreator.Mode.DISABLED);
   }
   // 19-Apr-2016, tatu: As per [databind#1197], [databind#1122] (and some related),
   //    may or may not consider it a creator
   if (_cfgConstructorPropertiesImpliesCreator ) {
     if (a instanceof AnnotatedConstructor) {
       if (_java7Helper != null) {
         Boolean b = _java7Helper.hasCreatorAnnotation(a);
         if (b != null) {
           return b.booleanValue();
         }
       }
     }
   }
   return false;
}
origin: Nextdoor/bender

@Override
public boolean hasCreatorAnnotation(Annotated a)
{
  /* No dedicated disabling; regular @JsonIgnore used if needs to be
   * ignored (and if so, is handled prior to this method getting called)
   */
   JsonCreator ann = _findAnnotation(a, JsonCreator.class);
   if (ann != null) {
     return (ann.mode() != JsonCreator.Mode.DISABLED);
   }
   // 19-Apr-2016, tatu: As per [databind#1197], [databind#1122] (and some related),
   //    may or may not consider it a creator
   if (_cfgConstructorPropertiesImpliesCreator ) {
     if (a instanceof AnnotatedConstructor) {
       if (_java7Helper != null) {
         Boolean b = _java7Helper.hasCreatorAnnotation(a);
         if (b != null) {
           return b.booleanValue();
         }
       }
     }
   }
   return false;
}
com.fasterxml.jackson.databind.extJava7SupporthasCreatorAnnotation

Popular methods of Java7Support

  • findTransient
  • findConstructorName
  • getDeserializerForJavaNioFilePath
  • getSerializerForJavaNioFilePath

Popular classes and methods

  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • startActivity (Activity)
  • BorderLayout (java.awt)
  • Path (java.nio.file)
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • TreeMap (java.util)
    A map whose entries are sorted by their keys. All optional operations such as #put and #remove are s
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)