congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
BasicBeanDescription.findSingleArgConstructor
Code IndexAdd Tabnine to your IDE (free)

How to use
findSingleArgConstructor
method
in
org.codehaus.jackson.map.introspect.BasicBeanDescription

Best Java code snippets using org.codehaus.jackson.map.introspect.BasicBeanDescription.findSingleArgConstructor (Showing top 6 results out of 315)

origin: org.codehaus.jackson/jackson-mapper-asl

  public static KeyDeserializer findStringBasedKeyDeserializer(DeserializationConfig config, JavaType type)
  {
    /* We don't need full deserialization information, just need to
     * know creators.
     */
    BasicBeanDescription beanDesc = config.introspect(type);
    // Ok, so: can we find T(String) constructor?
    Constructor<?> ctor = beanDesc.findSingleArgConstructor(String.class);
    if (ctor != null) {
      if (config.isEnabled(DeserializationConfig.Feature.CAN_OVERRIDE_ACCESS_MODIFIERS)) {
        ClassUtil.checkAndFixAccess(ctor);
      }
      return new StdKeyDeserializer.StringCtorKeyDeserializer(ctor);
    }
    /* or if not, "static T valueOf(String)" (or equivalent marked
     * with @JsonCreator annotation?)
     */
    Method m = beanDesc.findFactoryMethod(String.class);
    if (m != null){
      if (config.isEnabled(DeserializationConfig.Feature.CAN_OVERRIDE_ACCESS_MODIFIERS)) {
        ClassUtil.checkAndFixAccess(m);
      }
      return new StdKeyDeserializer.StringFactoryKeyDeserializer(m);
    }
    // nope, no such luck...
    return null;
  }
}
origin: camunda/camunda-bpm-platform

  public static KeyDeserializer findStringBasedKeyDeserializer(DeserializationConfig config, JavaType type)
  {
    /* We don't need full deserialization information, just need to
     * know creators.
     */
    BasicBeanDescription beanDesc = config.introspect(type);
    // Ok, so: can we find T(String) constructor?
    Constructor<?> ctor = beanDesc.findSingleArgConstructor(String.class);
    if (ctor != null) {
      if (config.isEnabled(DeserializationConfig.Feature.CAN_OVERRIDE_ACCESS_MODIFIERS)) {
        ClassUtil.checkAndFixAccess(ctor);
      }
      return new StdKeyDeserializer.StringCtorKeyDeserializer(ctor);
    }
    /* or if not, "static T valueOf(String)" (or equivalent marked
     * with @JsonCreator annotation?)
     */
    Method m = beanDesc.findFactoryMethod(String.class);
    if (m != null){
      if (config.isEnabled(DeserializationConfig.Feature.CAN_OVERRIDE_ACCESS_MODIFIERS)) {
        ClassUtil.checkAndFixAccess(m);
      }
      return new StdKeyDeserializer.StringFactoryKeyDeserializer(m);
    }
    // nope, no such luck...
    return null;
  }
}
origin: com.barchart.wrap/barchart-wrap-jackson

  public static KeyDeserializer findStringBasedKeyDeserializer(DeserializationConfig config, JavaType type)
  {
    /* We don't need full deserialization information, just need to
     * know creators.
     */
    BasicBeanDescription beanDesc = config.introspect(type);
    // Ok, so: can we find T(String) constructor?
    Constructor<?> ctor = beanDesc.findSingleArgConstructor(String.class);
    if (ctor != null) {
      return new StdKeyDeserializer.StringCtorKeyDeserializer(ctor);
    }
    /* or if not, "static T valueOf(String)" (or equivalent marked
     * with @JsonCreator annotation?)
     */
    Method m = beanDesc.findFactoryMethod(String.class);
    if (m != null){
      return new StdKeyDeserializer.StringFactoryKeyDeserializer(m);
    }
    // nope, no such luck...
    return null;
  }
}
origin: org.codehaus.jackson/com.springsource.org.codehaus.jackson.mapper

  public static KeyDeserializer findStringBasedKeyDeserializer(DeserializationConfig config, JavaType type)
  {
    /* We don't need full deserialization information, just need to
     * know creators.
     */
    BasicBeanDescription beanDesc = config.introspect(type);
    // Ok, so: can we find T(String) constructor?
    Constructor<?> ctor = beanDesc.findSingleArgConstructor(String.class);
    if (ctor != null) {
      return new StdKeyDeserializer.StringCtorKeyDeserializer(ctor);
    }
    /* or if not, "static T valueOf(String)" (or equivalent marked
     * with @JsonCreator annotation?)
     */
    Method m = beanDesc.findFactoryMethod(String.class);
    if (m != null){
      return new StdKeyDeserializer.StringFactoryKeyDeserializer(m);
    }
    // nope, no such luck...
    return null;
  }
}
origin: org.codehaus.jackson/jackson-mapper-lgpl

  public static KeyDeserializer findStringBasedKeyDeserializer(DeserializationConfig config, JavaType type)
  {
    /* We don't need full deserialization information, just need to
     * know creators.
     */
    BasicBeanDescription beanDesc = config.introspect(type);
    // Ok, so: can we find T(String) constructor?
    Constructor<?> ctor = beanDesc.findSingleArgConstructor(String.class);
    if (ctor != null) {
      if (config.isEnabled(DeserializationConfig.Feature.CAN_OVERRIDE_ACCESS_MODIFIERS)) {
        ClassUtil.checkAndFixAccess(ctor);
      }
      return new StdKeyDeserializer.StringCtorKeyDeserializer(ctor);
    }
    /* or if not, "static T valueOf(String)" (or equivalent marked
     * with @JsonCreator annotation?)
     */
    Method m = beanDesc.findFactoryMethod(String.class);
    if (m != null){
      if (config.isEnabled(DeserializationConfig.Feature.CAN_OVERRIDE_ACCESS_MODIFIERS)) {
        ClassUtil.checkAndFixAccess(m);
      }
      return new StdKeyDeserializer.StringFactoryKeyDeserializer(m);
    }
    // nope, no such luck...
    return null;
  }
}
origin: ovea-deprecated/jetty-session-redis

  public static KeyDeserializer findStringBasedKeyDeserializer(DeserializationConfig config, JavaType type)
  {
    /* We don't need full deserialization information, just need to
     * know creators.
     */
    BasicBeanDescription beanDesc = config.introspect(type);
    // Ok, so: can we find T(String) constructor?
    Constructor<?> ctor = beanDesc.findSingleArgConstructor(String.class);
    if (ctor != null) {
      if (config.isEnabled(DeserializationConfig.Feature.CAN_OVERRIDE_ACCESS_MODIFIERS)) {
        ClassUtil.checkAndFixAccess(ctor);
      }
      return new StdKeyDeserializer.StringCtorKeyDeserializer(ctor);
    }
    /* or if not, "static T valueOf(String)" (or equivalent marked
     * with @JsonCreator annotation?)
     */
    Method m = beanDesc.findFactoryMethod(String.class);
    if (m != null){
      if (config.isEnabled(DeserializationConfig.Feature.CAN_OVERRIDE_ACCESS_MODIFIERS)) {
        ClassUtil.checkAndFixAccess(m);
      }
      return new StdKeyDeserializer.StringFactoryKeyDeserializer(m);
    }
    // nope, no such luck...
    return null;
  }
}
org.codehaus.jackson.map.introspectBasicBeanDescriptionfindSingleArgConstructor

Javadoc

Method that can be called to locate a single-arg constructor that takes specified exact type (will not accept supertype constructors)

Popular methods of BasicBeanDescription

  • getBeanClass
  • getClassInfo
  • <init>
  • _findPropertyFields
  • findAnySetter
    Method used to locate the method of introspected class that implements org.codehaus.jackson.annotate
  • findDefaultConstructor
    Method that will locate the no-arg constructor for this class, if it has one, and that constructor h
  • findFactoryMethod
    Method that can be called to find if introspected class declares a static "valueOf" factory method t
  • findJsonValueMethod
    Method for locating the getter method that is annotated with org.codehaus.jackson.annotate.JsonValue
  • findMethod
  • findProperties
  • findSerializationInclusion
    Method for determining whether null properties should be written out for a Bean of introspected type
  • getConstructors
  • findSerializationInclusion,
  • getConstructors,
  • getFactoryMethods,
  • getType,
  • hasKnownClassAnnotations,
  • instantiateBean,
  • isFactoryMethod,
  • bindingsForBeanType,
  • findAnyGetter

Popular in Java

  • Start an intent from android
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • startActivity (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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