private JsonConvertOptions getJsonConverterOptions ( JsonMBean pAnno ) { // Extract conversion options from the annotation if ( pAnno == null ) { return JsonConvertOptions . DEFAULT ; } else { ValueFaultHandler faultHandler = pAnno . faultHandling ( ) == JsonMBean . FaultHandler . IGNORE_ERRORS ? ValueFaultHandler . IGNORING_VALUE_FAULT_HANDLER : ValueFaultHandler . THROWING_VALUE_FAULT_HANDLER ; return new JsonConvertOptions . Builder ( ) . maxCollectionSize ( pAnno . maxCollectionSize ( ) ) . maxDepth ( pAnno . maxDepth ( ) ) . maxObjects ( pAnno . maxObjects ( ) ) . faultHandler ( faultHandler ) . build ( ) ; } }
Extract convert options from annotation