Package rocket.generator.rebind

Examples of rocket.generator.rebind.GeneratorContext.info()


    GeneratorHelper.checkJavaTypeName("parameter:newTypeName", newTypeName);
    Checker.notNull("parameter:cometClient", cometClient);

    final GeneratorContext context = this.getGeneratorContext();
    context.branch();
    context.info("Creating new sub class of " + cometClient.getName() + " called " + newTypeName);

    final NewConcreteType subClass = context.newConcreteType(newTypeName);
    subClass.setAbstract(false);
    subClass.setFinal(true);
    subClass.setSuperType(cometClient);
View Full Code Here


  protected Type createRpcServiceInterface(final NewConcreteType newType) {
    Checker.notNull("parameter:newType", newType);

    final GeneratorContext context = this.getGeneratorContext();
    context.branch();
    context.info("Generating Rpc service interface which will provide the payload serializer.");

    final NewNestedInterfaceType serviceInterface = newType.newNestedInterfaceType();
    serviceInterface.setNestedName(Constants.RPC_SERVICE_INTERFACE);
    serviceInterface.setStatic(true);
    serviceInterface.setSuperType(this.getRemoteService());
View Full Code Here

  protected void createRpcAsyncServiceInterface(final NewConcreteType newType) {
    Checker.notNull("parameter:newType", newType);

    final GeneratorContext context = this.getGeneratorContext();
    context.branch();
    context.info("Generating Rpc async service interface counterpart for the rpc service interface.");

    final NewNestedInterfaceType asyncServiceInterface = newType.newNestedInterfaceType();
    asyncServiceInterface.setNestedName(Constants.RPC_ASYNC_SERVICE_INTERFACE);
    asyncServiceInterface.setStatic(true);
    asyncServiceInterface.setVisibility(Visibility.PUBLIC);
View Full Code Here

   */
  protected Type getPayloadType(final Type type) {
    Checker.notNull("parameter:type", type);

    final GeneratorContext context = this.getGeneratorContext();
    context.info("Retrieving incoming payload type.");

    final List<String> values = type.getMetadataValues(Constants.COMET_PAYLOAD_TYPE_ANNOTATION);
    if (values.size() != 1) {
      throwUnableToFindCometPayloadTypeAnnotation(type);
    }
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.