Package rocket.generator.rebind

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


        context.debug(bean.getId());
        continue;
      }
      advised.add(bean);

      context.debug(bean.getId());
    }
    context.unbranch();

    return advised;
  }
View Full Code Here


    final GeneratorContext context = this.getGeneratorContext();
    context.branch();

    final String id = bean.getId();
    context.debug(id);

    final Type superType = this.getProxyFactoryBean();

    final NewConcreteType beanFactory = this.getBeanFactory();
    final NewNestedType proxyFactoryBean = beanFactory.newNestedType();
View Full Code Here

    proxyFactoryBean.setSuperType(superType);
    proxyFactoryBean.setVisibility(Visibility.PRIVATE);

    bean.setProxyFactoryBean(proxyFactoryBean);

    context.debug("ProxyFactoryBean superType: " + superType);

    final NewNestedType proxy = this.createProxy(bean);
    bean.setProxy(proxy);

    this.overrideProxyFactoryBeanCreateProxy(bean);
View Full Code Here

    while (beansIterator.hasNext()) {
      final Bean bean = beansIterator.next();
      body.addBean(bean);

      context.debug(bean.getId());
    }
    context.unbranch();
  }

  /**
 
View Full Code Here

      final Alias alias = beansIterator.next();
      final String from = alias.getName();
      final String to = alias.getBean();
      body.register(from, to);

      context.debug(from + "=" + to);
      aliasCount++;
    }

    context.debug("Registered " + aliasCount + " aliases.");
    context.unbranch();
View Full Code Here

      context.debug(from + "=" + to);
      aliasCount++;
    }

    context.debug("Registered " + aliasCount + " aliases.");
    context.unbranch();
  }

  /**
   * Overrides the
View Full Code Here

      final boolean eager = bean.isEagerLoaded();
      if (eager) {
        body.addBean(bean.getId());
        eagerSingletonBeanCount++;

        context.debug(bean.toString());
      } else {
        lazySingletonBeanCount++;
      }
    }
    context.unbranch();
View Full Code Here

      } else {
        lazySingletonBeanCount++;
      }
    }
    context.unbranch();
    context.debug("When instantiated " + eagerSingletonBeanCount + " singletons will be eaglerly loaded, the remaining "
        + lazySingletonBeanCount + " will be lazily loaded on first request.");
    context.unbranch();
  }

  protected String getGeneratedTypeNameSuffix() {
View Full Code Here

        while (true) {
          if (method.getVisibility() != Visibility.PUBLIC) {
            break;
          }
          if (false == method.getName().startsWith(Constants.TEST_METHOD_NAME_PREFIX)) {
            context.debug("Ignoring method " + method + " because it doesnt start with public.");
            break;
          }

          // test method must return void
          final Type returnType = method.getReturnType();
View Full Code Here

    final Iterator<Method> iterator = methods.iterator();
    while (iterator.hasNext()) {
      final Method testMethod = iterator.next();
      body.addTestMethod(testMethod);
      context.debug("Adding test method " + testMethod);
    }
  }

  protected void throwTestMethodDoesntReturnVoid(final Method method) {
    throw new TestBuilderGeneratorException("The test method should return void and not " + method.getReturnType() + ", method: "
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.