Package rocket.generator.rebind

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


      body.addFieldGetter(getter);

      fieldCount++;
    }

    context.unbranch();
    context.debug("Overridden " + newMethod);
  }

  /**
   * Creates a private method that uses jsni to retrieve the value of a field.
View Full Code Here


      context.debug(type.getName() + " = " + objectReader.getName());
    }

    newMethod.setBody(body);

    context.unbranch();
  }

  /**
   * Overrides the generated SerializationFactory to return a anonymous
   * ClientObjectOutputStream which implements the getObjectWriter( String
View Full Code Here

    document.setEntityResolver(new BeanFactoryDtdEntityResolver());
    document.setErrorHandler(new RethrowSaxExceptionsErrorHandler());
    document.setGenerator(this);
    document.process(fileName);

    context.unbranch();

    return document;
  }

  /**
 
View Full Code Here

      context.debug(type.getName() + " = " + objectWriter.getName());
    }

    newMethod.setBody(body);

    context.unbranch();
  }

  protected Type getSerializationFactory() {
    return this.getGeneratorContext().getType(SerializationConstants.SERIALIZATION_FACTORY);
  }
View Full Code Here

        this.createBeanFactoryBean(bean);
        beansCounter++;
        break;
      }

      context.unbranch();
    }

    context.debug("Total: " + beans.size() + ", beans: " + beansCounter + ", nested(anonymous): " + nestedBeanCounter + ", rpcs: "
        + rpcCounter);
    context.unbranch();
View Full Code Here

      context.unbranch();
    }

    context.debug("Total: " + beans.size() + ", beans: " + beansCounter + ", nested(anonymous): " + nestedBeanCounter + ", rpcs: "
        + rpcCounter);
    context.unbranch();
  }

  /**
   * Creates the factory bean that will be responsible for producing the bean
   * on demand.
View Full Code Here

      context.branch();
      context.debug(bean.getId());

      this.overrideFactoryBeanCreateInstance(bean);

      context.unbranch();
    }

    context.unbranch();
  }
View Full Code Here

      this.overrideFactoryBeanCreateInstance(bean);

      context.unbranch();
    }

    context.unbranch();
  }

  /**
   * Depending on the bean tag overrides the appropriate
   * {@link FactoryBean#createInstance()} with an inline constructor call or
View Full Code Here

      if (context.isDebugEnabled()) {
        context.debug(value.toString());
      }
    }

    context.unbranch();

    context.branch();
    context.debug("Matching constructors.");

    final List<Constructor> matchingConstructors = new ArrayList<Constructor>();
View Full Code Here

      this.throwUnableToFindConstructor(bean);
    }
    if (matchingConstructors.size() > 1) {
      this.throwTooManyConstructors(bean, matchingConstructors);
    }
    context.unbranch();

    final Constructor constructor = (Constructor) matchingConstructors.get(0);
    body.setBean(constructor);

    final Iterator<ConstructorParameter> constructorParameters = constructor.getParameters().iterator();
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.