Rework AbstractCodecFactory.codecFor()

Description

AbstractCodecFactory performs leafref resolution based on an 'S extends TypeAware & SchemaNode' – leading to a call to SchemaContextUtil.getBaseTypeForLeafRef().

YANGTOOLS-1229 deals with properly moving that method to SchemaInferenceStack, effectively resulting in codecFor() requiring it.
Since SchemaInferenceStack is a mutable structure, we do not want to deal with its lifecycle, but rather have callers of codecFor() provide a resolution callback – and they will provide an appropriate SchemaInferenceStack-based implementation.

 

Activity

Show:
Done

Details

Assignee

Reporter

Components

Fix versions

Priority

Created February 11, 2021 at 12:34 PM
Updated February 16, 2021 at 9:38 AM
Resolved February 16, 2021 at 9:38 AM