/** * Factory method to use for constructing an instance to use for building serializers. * * @since 1.9 */ public static BasicBeanDescription forSerialization(POJOPropertiesCollector coll) { BasicBeanDescription desc = new BasicBeanDescription( coll.getConfig(), coll.getType(), coll.getClassDef(), coll.getProperties()); desc._jsonValueMethod = coll.getJsonValueMethod(); desc._anyGetterMethod = coll.getAnyGetterMethod(); return desc; }
/** * Factory method to use for constructing an instance to use for building deserializers. * * @since 1.9 */ public static BasicBeanDescription forDeserialization(POJOPropertiesCollector coll) { BasicBeanDescription desc = new BasicBeanDescription( coll.getConfig(), coll.getType(), coll.getClassDef(), coll.getProperties()); desc._anySetterMethod = coll.getAnySetterMethod(); desc._ignoredPropertyNames = coll.getIgnoredPropertyNames(); desc._ignoredPropertyNamesForDeser = coll.getIgnoredPropertyNamesForDeser(); desc._injectables = coll.getInjectables(); return desc; }