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

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

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

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

AnnotatedMethod valueMethod = beanDesc.findJsonValueMethod();
if (valueMethod != null) {
origin: camunda/camunda-bpm-platform

AnnotatedMethod valueMethod = beanDesc.findJsonValueMethod();
if (valueMethod != null) {
origin: org.codehaus.jackson/jackson-mapper-lgpl

AnnotatedMethod valueMethod = beanDesc.findJsonValueMethod();
if (valueMethod != null) {
origin: com.barchart.wrap/barchart-wrap-jackson

AnnotatedMethod valueMethod = beanDesc.findJsonValueMethod();
if (valueMethod != null) {
origin: ovea-deprecated/jetty-session-redis

AnnotatedMethod valueMethod = beanDesc.findJsonValueMethod();
if (valueMethod != null) {
origin: org.codehaus.jackson/com.springsource.org.codehaus.jackson.mapper

/**
 * Method that will try to construct a {@link BeanSerializer} for
 * given class. Returns null if no properties are found.
 */
public JsonSerializer<Object> findBeanSerializer(Class<?> type, SerializationConfig config,
                         BasicBeanDescription beanDesc)
{
  // First things first: we know some types are not beans...
  if (!isPotentialBeanType(type)) {
    return null;
  }
  /* [JACKSON-80]: Should support @JsonValue, which is alternative to
   *   actual bean method introspection.
   */
  AnnotatedMethod valueMethod = beanDesc.findJsonValueMethod();
  if (valueMethod != null) {
    /* Further, method itself may also be annotated to indicate
     * exact JsonSerializer to use for whatever value is returned...
     */
    JsonSerializer<Object> ser = findSerializerFromAnnotation(config, valueMethod);
    return new JsonValueSerializer(valueMethod.getAnnotated(), ser);
  }
  return constructBeanSerializer(config, beanDesc);
}
org.codehaus.jackson.map.introspectBasicBeanDescriptionfindJsonValueMethod

Javadoc

Method for locating the getter method that is annotated with org.codehaus.jackson.annotate.JsonValue annotation, if any. If multiple ones are found, an error is reported by throwing IllegalArgumentException

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
  • findMethod
  • findProperties
  • findSerializationInclusion
    Method for determining whether null properties should be written out for a Bean of introspected type
  • findSingleArgConstructor
    Method that can be called to locate a single-arg constructor that takes specified exact type (will n
  • getConstructors
  • findSingleArgConstructor,
  • getConstructors,
  • getFactoryMethods,
  • getType,
  • hasKnownClassAnnotations,
  • instantiateBean,
  • isFactoryMethod,
  • bindingsForBeanType,
  • findAnyGetter

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Reference (javax.naming)
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top 15 Vim 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