Examples of newConcreteType()


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

    final GeneratorContext context = this.getGeneratorContext();
    context.debug(type.getName());

    final String newTypeName = this.getGeneratedTypeName(type, SerializationConstants.OBJECT_READER_GENERATED_TYPE_SUFFIX,
        "rocket.serialization.client.reader");
    final NewConcreteType newConcreteType = context.newConcreteType(newTypeName);
    newConcreteType.setAbstract(false);
    newConcreteType.setFinal(false);

    context.debug(newTypeName);
View Full Code Here

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

   * @param superType
   * @return A new NewConcreteType
   */
  protected NewConcreteType createRpcServiceClient(final String newTypeName, final Type serviceInterface, final Type superType) {
    final GeneratorContext context = this.getGeneratorContext();
    final NewConcreteType type = context.newConcreteType(newTypeName);
    type.setAbstract(false);
    type.setFinal(true);
    type.setSuperType(superType);
    type.setVisibility(Visibility.PUBLIC);

View Full Code Here

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

    context.branch();
    context.info(newTypeName);
    context.debug("extends " + cometClient.getName());
    context.debug("final");

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

    context.unbranch();
View Full Code Here

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

    final GeneratorContext context = this.getGeneratorContext();
    context.debug(type.getName());

    final String newTypeName = this.getGeneratedTypeName(type, SerializationConstants.OBJECT_WRITER_GENERATED_TYPE_SUFFIX,
        "rocket.serialization.client.writer");
    final NewConcreteType newConcreteType = context.newConcreteType(newTypeName);
    newConcreteType.setAbstract(false);
    newConcreteType.setFinal(false);

    context.debug(newTypeName);
View Full Code Here

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

    Checker.notEmpty("parameter:newTypeName", newTypeName);

    final GeneratorContext context = this.getGeneratorContext();
    context.info("Creating serialization factory " + newTypeName);

    final NewConcreteType serializationFactory = context.newConcreteType(newTypeName);
    serializationFactory.setAbstract(false);
    serializationFactory.setFinal(true);
    serializationFactory.setSuperType(this.getSerializationFactory());
    return serializationFactory;
  }
View Full Code Here

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

  protected NewConcreteType subClassLoggingFactory(final String newTypeName) {
    final GeneratorContext context = this.getGeneratorContext();
    context.branch();
    context.info("Creating type that sub classes LoggingFactoryImpl");

    final NewConcreteType newType = context.newConcreteType(newTypeName);
    newType.setAbstract(false);
    newType.setFinal(true);
    newType.setSuperType(this.getLoggerFactoryImpl());
    newType.setVisibility(Visibility.PUBLIC);
View Full Code Here

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

    Checker.notNull("parameter:type", type);

    final GeneratorContext context = this.getGeneratorContext();
    context.debug("Creating new type \"" + type.getName() + "\".");

    final NewConcreteType newType = context.newConcreteType(newTypeName);
    newType.setAbstract(false);
    newType.setFinal(false);

    // extend either JsonSerializerType or the generated type of type...
    Type superType = type.getSuperType();
View Full Code Here

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

  protected NewConcreteType createType(final Type type, final String newTypeName) {
    final GeneratorContext context = this.getGeneratorContext();
    context.branch();
    context.info(newTypeName);

    final NewConcreteType newType = context.newConcreteType(newTypeName);
    newType.setAbstract(false);
    newType.setFinal(true);

    final Type superType = this.getImageFactoryImpl();
    newType.setSuperType(superType);
View Full Code Here

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

    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);

    context.unbranch();
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.