Porting this java code ``` @BindingAnnotation(Bind...
# announcements
j
Porting this java code
Copy code
@BindingAnnotation(BindBytes.BytesBinderFactory.class)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.PARAMETER})
public @interface BindBytes {
    String value();

    class BytesBinderFactory implements BinderFactory {
        public Binder build(final Annotation annotation) {
            return new Binder<BindBytes, byte[]>() {
                public void bind(SQLStatement q, BindBytes bind, byte[] arg) {
                    String name = ((BindBytes) annotation).value();
                    q.bind(name, UtilKt.hexify(arg));
                }
            };
        }
    }
}