Package rocket.generator.rebind.constructor

Examples of rocket.generator.rebind.constructor.NewConstructor


      proxy.setSuperType(targetBeanType);
    }
    proxy.setVisibility(Visibility.PRIVATE);

    // add a no arguments constructor...
    final NewConstructor constructor = proxy.newConstructor();
    constructor.setBody(EmptyCodeBlock.INSTANCE);
    constructor.setVisibility(Visibility.PUBLIC);

    // add a field of type target bean this will be set by the
    // ProxyFactoryBean.createProxy0 method.
    final NewField field = proxy.newField();
    field.setFinal(false);
View Full Code Here


    // add an annotation that marks the type being handled by this
    // ObjectReader
    newConcreteType.addMetaData(SerializationConstants.SERIALIZABLE_TYPE, type.getName());

    // create a public no arguments constructor.
    final NewConstructor constructor = newConcreteType.newConstructor();
    constructor.setBody(EmptyCodeBlock.INSTANCE);
    constructor.setVisibility(Visibility.PUBLIC);

    return newConcreteType;
  }
View Full Code Here

    newConcreteType.setSuperType(objectWriterSuperType);
    context.debug("extends " + objectWriterSuperType);

    newConcreteType.addMetaData(SerializationConstants.SERIALIZABLE_TYPE, type.getName());

    final NewConstructor constructor = newConcreteType.newConstructor();
    constructor.setBody(EmptyCodeBlock.INSTANCE);
    constructor.setVisibility(Visibility.PUBLIC);
    return newConcreteType;
  }
View Full Code Here

TOP

Related Classes of rocket.generator.rebind.constructor.NewConstructor

Copyright © 2018 www.massapicom. 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.