Package rocket.generator.rebind

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


      final Type objectWriter = entry.getValue();
      final Field objectWriterSingleton = objectWriter.getField(SerializationConstants.SINGLETON);

      body.register(type, objectWriterSingleton);

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

    newMethod.setBody(body);

    context.unbranch();
View Full Code Here


    while (iterator.hasNext()) {
      final Bean bean = iterator.next();
      context.branch();

      context.debug(bean.getId());

      while (true) {
        if (bean instanceof Rpc) {
          this.createRpcFactoryBean((Rpc) bean);
          rpcCounter++;
View Full Code Here

      }

      context.unbranch();
    }

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

  /**
 
View Full Code Here

    final String className = bean.getTypeName();
    final Type beanType = this.getConcreteType(beanName, className);
    bean.setType(beanType);

    context.debug(beanType.getName());

    final boolean singleton = bean.isSingleton();
    bean.setSingleton(singleton);
    context.debug(singleton ? "singleton" : "prototype");
View Full Code Here

    context.debug(beanType.getName());

    final boolean singleton = bean.isSingleton();
    bean.setSingleton(singleton);
    context.debug(singleton ? "singleton" : "prototype");

    // process the eager/lazy attribute
    final boolean eager = bean.isEagerLoaded();
    bean.setEagerLoaded(eager);
    this.checkPrototypesAreNotMarkedAsEager(bean);
View Full Code Here

    final boolean eager = bean.isEagerLoaded();
    bean.setEagerLoaded(eager);
    this.checkPrototypesAreNotMarkedAsEager(bean);

    if (singleton) {
      context.debug(eager ? "eager" : "lazyloaded");
    }

    if (false == singleton) {
      final String destroyMethod = bean.getDestroyMethod();
      if (false == Tester.isNullOrEmpty(destroyMethod)) {
View Full Code Here

    // add an annotation that declares the actual bean type.
    factoryBean.addMetaData(Constants.FACTORY_BEAN_OBJECT_TYPE, bean.getType().getName());

    bean.setFactoryBean(factoryBean);
    context.debug("FactoryBean: " + factoryBean.getName());

    this.addBean(bean);
  }

  protected void throwBeanIdIsMissing(final Bean bean) {
View Full Code Here

    final Iterator<Bean> iterator = beans.iterator();
    while (iterator.hasNext()) {
      final Bean bean = iterator.next();
      context.branch();
      context.debug(bean.getId());

      this.overrideFactoryBeanCreateInstance(bean);

      context.unbranch();
    }
View Full Code Here

    final ConstructorTemplatedFile body = new ConstructorTemplatedFile();
    newFactoryMethod.setBody(body);

    final GeneratorContext context = this.getGeneratorContext();
    context.delayedBranch();
    context.debug("Constructor parameter values.");

    final List<Value> arguments = bean.getConstructorValues();
    final Iterator<Value> argumentsIterator = arguments.iterator();
    while (argumentsIterator.hasNext()) {
      final Value value = argumentsIterator.next();
View Full Code Here

    while (argumentsIterator.hasNext()) {
      final Value value = argumentsIterator.next();
      body.addArgument(value);

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

    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.