Examples of newBuilder()


Examples of org.apache.cxf.tools.java2wsdl.processor.internal.ServiceBuilderFactory.newBuilder()

        }
        builderFactory.setServiceClass(clz);
        builderFactory.setDatabindingName(getDataBindingName());
        // The service class determines the frontend, so no need to pass it in
        // twice.
        ServiceBuilder builder = builderFactory.newBuilder(applicationContext);

        builder.validate();

        builder.setTransportId(getTransportId());
        builder.setBus(getBus());
View Full Code Here

Examples of org.apache.cxf.tools.java2wsdl.processor.internal.ServiceBuilderFactory.newBuilder()

            context.put(ToolConstants.GEN_FROM_SEI, Boolean.FALSE);
        }
        builderFactory.setServiceClass(clz);
        builderFactory.setDatabindingName(getDataBindingName());
        // The service class determines the frontend, so no need to pass it in twice.
        ServiceBuilder builder = builderFactory.newBuilder(applicationContext);

        builder.validate();

        if (context.get(ToolConstants.CFG_ADDRESS) != null) {
            String address = (String)context.get(ToolConstants.CFG_ADDRESS);
View Full Code Here

Examples of org.apache.cxf.tools.java2wsdl.processor.internal.ServiceBuilderFactory.newBuilder()

            context.put(ToolConstants.GEN_FROM_SEI, Boolean.FALSE);
        }
        builderFactory.setServiceClass(clz);
        builderFactory.setDatabindingName(getDataBindingName());
        // The service class determines the frontend, so no need to pass it in twice.
        ServiceBuilder builder = builderFactory.newBuilder();

        builder.validate();

        if (context.get(ToolConstants.CFG_ADDRESS) != null) {
            String address = (String)context.get(ToolConstants.CFG_ADDRESS);
View Full Code Here

Examples of org.apache.cxf.tools.java2wsdl.processor.internal.ServiceBuilderFactory.newBuilder()

            context.put(ToolConstants.GEN_FROM_SEI, Boolean.FALSE);
        }
        builderFactory.setServiceClass(clz);
        // TODO check if user specify the style from cli arguments
        //      builderFactory.setStyle(style/from/command/line);
        ServiceBuilder builder = builderFactory.newBuilder();

        builder.validate();

        if (context.get(ToolConstants.CFG_ADDRESS) != null) {
            String address = (String)context.get(ToolConstants.CFG_ADDRESS);
View Full Code Here

Examples of org.apache.tajo.datum.ProtobufDatumFactory.newBuilder()

            int byteSize = buffer.getInt();
            byte [] rawBytes = new byte[byteSize];
            buffer.get(rawBytes);

            ProtobufDatumFactory factory = ProtobufDatumFactory.get(columnTypes[i]);
            Message.Builder builder = factory.newBuilder();
            builder.mergeFrom(rawBytes);
            tuple.put(i, factory.createDatum(builder.build()));
            break;
          }
View Full Code Here

Examples of org.apache.tajo.datum.ProtobufDatumFactory.newBuilder()

              DatumFactory.createText((String) columns[i].nextValue()));
          break;

        case PROTOBUF: {
          ProtobufDatumFactory factory = ProtobufDatumFactory.get(dataType.getCode());
          Message.Builder builder = factory.newBuilder();
          builder.mergeFrom(((ByteBuffer)columns[i].nextValue()).array());
          tuple.put(tid, factory.createDatum(builder));
          break;
        }
View Full Code Here

Examples of org.apache.tajo.datum.ProtobufDatumFactory.newBuilder()

                      column.get(tid).getBytesCopy()));
              break;

            case PROTOBUF: {
              ProtobufDatumFactory factory = ProtobufDatumFactory.get(dataType.getCode());
              Message.Builder builder = factory.newBuilder();
              builder.mergeFrom(column.get(tid).getBytesCopy());
              tuple.put(tid, factory.createDatum(builder));
              break;
            }
            case INET4:
View Full Code Here

Examples of org.apache.tajo.datum.ProtobufDatumFactory.newBuilder()

    TajoDataTypes.DataType.Builder builder = TajoDataTypes.DataType.newBuilder();
    builder.setType(TajoDataTypes.Type.PROTOBUF);
    builder.setCode(TajoIdProtos.QueryIdProto.class.getName());

    ProtobufDatumFactory factory = ProtobufDatumFactory.get(builder.build());
    TajoIdProtos.QueryIdProto.Builder queryIdBuilder = factory.newBuilder();
    queryIdBuilder.setId(String.valueOf(System.currentTimeMillis()));
    queryIdBuilder.setSeq(1);

    TajoIdProtos.QueryIdProto queryId = queryIdBuilder.build();
    ProtobufDatum datum = factory.createDatum(queryId);
View Full Code Here

Examples of org.apache.tajo.datum.ProtobufDatumFactory.newBuilder()

    ProtobufDatum datum = factory.createDatum(queryId);

    ProtobufJsonFormat formatter = ProtobufJsonFormat.getInstance();
    String json = formatter.printToString(datum.get());

    TajoIdProtos.QueryIdProto.Builder fromJson = factory.newBuilder();
    formatter.merge(TextUtils.toInputStream(json), fromJson);
    assertEquals(queryId, fromJson.build());
  }
}
View Full Code Here

Examples of org.jtalks.common.security.acl.builders.AclBuilders.newBuilder()

        if (group instanceof AnonymousGroup) {
            changeGrantsOfAnonymousGroup(permission, entity, granted);
        } else {
            AclBuilders builders = new AclBuilders();
            if (granted) {
                builders.newBuilder(aclManager).grant(permission).to(group).on(entity).flush();
            } else {
                builders.newBuilder(aclManager).restrict(permission).to(group).on(entity).flush();
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.