ac1d0globlya commented on code in PR #12188:
URL: https://github.com/apache/ignite/pull/12188#discussion_r2210824292


##########
modules/binary/api/src/main/java/org/apache/ignite/internal/binary/streams/BinaryStreams.java:
##########
@@ -18,11 +18,25 @@
 package org.apache.ignite.internal.binary.streams;
 
 import java.nio.ByteBuffer;
+import java.util.Iterator;
+import org.apache.ignite.internal.util.CommonUtils;
+import org.apache.ignite.internal.util.typedef.internal.A;
 
 /**
  * Utility class to provide static methods to create {@link BinaryInputStream} 
or {@link BinaryOutputStream} in different modes.
  */
 public class BinaryStreams {
+    /** Streams factory implementation. */
+    private static final BinaryStreamsFactory factory;
+
+    static {
+        Iterator<BinaryStreamsFactory> factories = 
CommonUtils.loadService(BinaryStreamsFactory.class).iterator();
+
+        A.ensure(factories.hasNext(), "BinaryStreamsFactory implementation not 
found. Please, add ignite-binary-impl to classpath");

Review Comment:
   Fixed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to