Separate out DataContainerPrototype
[mdsal.git] / binding / mdsal-binding-dom-codec / src / main / java / org / opendaylight / mdsal / binding / dom / codec / impl / LazyCodecContextSupplier.java
index 051bd3edf7bc5bd2feda6aa49c21004c440cbd22..a4f13f4835c05346a866eb714f21f3103b4fb72a 100644 (file)
@@ -17,8 +17,10 @@ import org.eclipse.jdt.annotation.NonNull;
  *
  * @param <C> {@link CodecContext} type
  */
-public abstract sealed class LazyCodecContextSupplier<C extends CodecContext> implements CodecContextSupplier
-        permits CommonDataObjectCodecPrototype {
+abstract sealed class LazyCodecContextSupplier<C extends CodecContext> implements CodecContextSupplier
+        // Note: while we could merge this class into DataContainerCodecPrototype, we want to keep the lazy-loading part
+        //       separate in case we need to non-DataContainer contexts.
+        permits DataContainerPrototype {
     private static final VarHandle INSTANCE;
 
     static {