Package rocket.generator.rebind

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


   * @return A set containing all blacklisted packages.
   */
  protected Set<TypeMatcher> loadBlackLists() {
    final GeneratorContext context = this.getGeneratorContext();
    context.branch();
    context.info("Attempting to load and merge all blacklists (unsorted).");

    final Set<TypeMatcher> blackLists = new HashSet<TypeMatcher>();

    final SubTypesVisitor packageVisitor = new SubTypesVisitor() {

View Full Code Here


  protected Map<Type, Type> findAllReaders(final Set<Type> types) {
    Checker.notNull("parameter:types", types);

    final GeneratorContext context = this.getGeneratorContext();
    context.branch();
    context.info("Finding existing ObjectReaders...");

    final ObjectReaderFinder finder = new ObjectReaderFinder() {
      @Override
      protected Type getImplementingInterface() {
        return SerializationFactoryGenerator.this.getObjectReader();
View Full Code Here

  protected Map<Type, Type> findAllWriters(final Set<Type> types) {
    Checker.notNull("parameter:types", types);

    final GeneratorContext context = this.getGeneratorContext();
    context.branch();
    context.info("Finding existing ObjectWriters...");

    final ObjectWriterFinder finder = new ObjectWriterFinder() {
      @Override
      protected Type getImplementingInterface() {
        return SerializationFactoryGenerator.this.getObjectWriter();
View Full Code Here

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

    final GeneratorContext context = this.getGeneratorContext();
    context.branch();
    context.info("Finding all serializable types reachable from " + type);

    final Type map = this.getMap();
    final Type list = this.getList();
    final Type set = this.getSet();
View Full Code Here

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

    final Set<Type> orderedSerializables = this.sortSerializablesIntoHeirarchyOrder(serializables);
    final GeneratorContext context = this.getGeneratorContext();
    context.branch();
    context.info("Creating necessary ObjectReaders.");

    final Iterator<Type> types = orderedSerializables.iterator();
    int skippedGeneratingCount = 0;
    final Set<Type> newReaders = new TreeSet<Type>(TypeComparator.INSTANCE);
View Full Code Here

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

    final Set<Type> orderedSerializables = this.sortSerializablesIntoHeirarchyOrder(serializables);
    final GeneratorContext context = this.getGeneratorContext();
    context.branch();
    context.info("Creating necessary ObjectWriters.");

    final Iterator<Type> types = orderedSerializables.iterator();
    int skippedGeneratingCount = 0;
    final Set<Type> newWriters = new TreeSet<Type>(TypeComparator.INSTANCE);
View Full Code Here

   * Verifies that the incoming serviceInterface is an interface and extends
   * JsonRpcService
   */
  protected void verifyServiceInterface(final Type serviceInterface) {
    final GeneratorContext context = this.getGeneratorContext();
    context.info("Verifying service interface: " + serviceInterface);

    // verify serviceInterface is an interface
    if (false == serviceInterface.isInterface()) {
      this.throwServiceInterfaceIsNotAnInterface(serviceInterface);
    }
View Full Code Here

  protected void verifyAsyncServiceInterface(final Type serviceInterface) {
    Checker.notNull("parameter:serviceInterface", serviceInterface);

    final GeneratorContext context = this.getGeneratorContext();
    context.branch();
    context.info("Verifying async interface for : " + serviceInterface);

    try {
      final Type asyncServiceInterface = this.getAsyncServiceInterface(serviceInterface);

      if (false == asyncServiceInterface.isInterface()) {
View Full Code Here

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

    final GeneratorContext context = this.getGeneratorContext();
    context.branch();
    context.info(newTypeName);
    context.debug("extends " + cometClient.getName());
    context.debug("final");

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

  protected void recordAliases(final Set<Alias> aliases) {
    Checker.notNull("parameter:aliases", aliases);

    final GeneratorContext context = this.getGeneratorContext();
    context.branch();
    context.info("Processing all alias (" + aliases.size() + ") tags.");

    final Iterator<Alias> iterator = aliases.iterator();
    while (iterator.hasNext()) {
      final Alias alias = iterator.next();
      final String name = alias.getName();
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.