com.fasterxml.jackson.databind.jsontype.SubtypeResolver Java Examples
The following examples show how to use
com.fasterxml.jackson.databind.jsontype.SubtypeResolver.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MapperConfigBase.java From lams with GNU General Public License v2.0 | 5 votes |
/** * Constructor used when creating a new instance (compared to * that of creating fluent copies) * * @since 2.8 */ protected MapperConfigBase(BaseSettings base, SubtypeResolver str, SimpleMixInResolver mixins, RootNameLookup rootNames, ConfigOverrides configOverrides) { super(base, DEFAULT_MAPPER_FEATURES); _mixIns = mixins; _subtypeResolver = str; _rootNames = rootNames; _rootName = null; _view = null; // default to "no attributes" _attributes = ContextAttributes.getEmpty(); _configOverrides = configOverrides; }
Example #2
Source File: MapperConfigBase.java From lams with GNU General Public License v2.0 | 5 votes |
protected MapperConfigBase(MapperConfigBase<CFG,T> src, SubtypeResolver str) { super(src); _mixIns = src._mixIns; _subtypeResolver = str; _rootNames = src._rootNames; _rootName = src._rootName; _view = src._view; _attributes = src._attributes; _configOverrides = src._configOverrides; }
Example #3
Source File: SerializationConfig.java From lams with GNU General Public License v2.0 | 5 votes |
/** * Constructor used by ObjectMapper to create default configuration object instance. * * @since 2.9 */ public SerializationConfig(BaseSettings base, SubtypeResolver str, SimpleMixInResolver mixins, RootNameLookup rootNames, ConfigOverrides configOverrides) { super(base, str, mixins, rootNames, configOverrides); _serFeatures = collectFeatureDefaults(SerializationFeature.class); _filterProvider = null; _defaultPrettyPrinter = DEFAULT_PRETTY_PRINTER; _generatorFeatures = 0; _generatorFeaturesToChange = 0; _formatWriteFeatures = 0; _formatWriteFeaturesToChange = 0; }
Example #4
Source File: SerializationConfig.java From lams with GNU General Public License v2.0 | 5 votes |
private SerializationConfig(SerializationConfig src, SubtypeResolver str) { super(src, str); _serFeatures = src._serFeatures; _filterProvider = src._filterProvider; _defaultPrettyPrinter = src._defaultPrettyPrinter; _generatorFeatures = src._generatorFeatures; _generatorFeaturesToChange = src._generatorFeaturesToChange; _formatWriteFeatures = src._formatWriteFeatures; _formatWriteFeaturesToChange = src._formatWriteFeaturesToChange; }
Example #5
Source File: SerializationConfig.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public SerializationConfig with(SubtypeResolver str) { return (str == _subtypeResolver)? this : new SerializationConfig(this, str); }
Example #6
Source File: MapperConfigBase.java From lams with GNU General Public License v2.0 | 2 votes |
/** * Method for constructing and returning a new instance with different * {@link SubtypeResolver} * to use. *<p> * NOTE: make sure to register new instance with <code>ObjectMapper</code> * if directly calling this method. */ public abstract T with(SubtypeResolver str);
Example #7
Source File: MapperConfigBase.java From lams with GNU General Public License v2.0 | 2 votes |
/** * Accessor for object used for finding out all reachable subtypes * for supertypes; needed when a logical type name is used instead * of class name (or custom scheme). */ @Override public final SubtypeResolver getSubtypeResolver() { return _subtypeResolver; }
Example #8
Source File: MapperConfig.java From lams with GNU General Public License v2.0 | votes |
public abstract SubtypeResolver getSubtypeResolver();