static public ContentHandleFactory newFactory ( ) { return new ContentHandleFactory ( ) { @ Override public Class < ? > [ ] getHandledClasses ( ) { return new Class < ? > [ ] { JsonNode . class } ; } @ Override public boolean isHandled ( Class < ? > type ) { return JsonNode . class . isAssignableFrom ( type ) ; } @ Override public < C > ContentHandle < C > newHandle ( Class < C > type ) { @ SuppressWarnings ( "unchecked" ) ContentHandle < C > handle = isHandled ( type ) ? ( ContentHandle < C > ) new JacksonHandle ( ) : null ; return handle ; } } ; }
Creates a factory to create a JacksonHandle instance for a JSON node .