*/
package org.opendaylight.mdsal.binding.dom.codec.impl;
-import com.google.common.annotations.Beta;
import org.eclipse.jdt.annotation.NonNullByDefault;
/**
* Type capture of an entity producing NodeCodecContexts. Implementations are required to perform memoization. This
* interface does not form API surface and is exposed only for generated code. It can change at any time.
*/
-@Beta
-@FunctionalInterface
@NonNullByDefault
-public interface CodecContextSupplier {
- CodecContext get();
+sealed interface CodecContextSupplier permits LazyCodecContextSupplier, ValueNodeCodecContext {
+
+ CodecContext getCodecContext();
}