+ /**
+ * Prototype for a {@code notiofication}. This class only exists because DataContainerCodecContext requires a
+ * prototype.
+ */
+ private static final class Prototype<D extends DataObject & BaseNotification>
+ extends DataObjectCodecPrototype<NotificationRuntimeType> {
+ Prototype(final Class<?> cls, final NotificationRuntimeType type, final CodecContextFactory factory) {
+ super(cls, NodeIdentifier.create(type.statement().argument()), type, factory);
+ }
+
+ @Override
+ DataContainerCodecContext<?, NotificationRuntimeType> createInstance() {
+ throw new UnsupportedOperationException("Should never be invoked");
+ }
+ }
+