Package rocket.generator.rebind

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


    }

    context.unbranch();

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

    final List<Constructor> matchingConstructors = new ArrayList<Constructor>();
    final TypeConstructorsVisitor visitor = new TypeConstructorsVisitor() {

      protected boolean visit(final Constructor constructor) {
View Full Code Here


          }
        }

        if (match) {
          matchingConstructors.add(constructor);
          context.debug("" + constructor);
        }
        return false;
      }
    };
View Full Code Here

      this.prepareValue(value);
    }

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

  /**
   * This method throws an exception when more than one constructor satisfies
View Full Code Here

      final Bean bean = iterator.next();
      final String initMethodName = bean.getInitMethod();

      if (false == Tester.isNullOrEmpty(initMethodName)) {
        context.branch();
        context.debug(bean.getId());

        this.overrideFactoryBeanSatisfyInit(bean);

        context.unbranch();
      }
View Full Code Here

    if (null == initMethod || initMethod.isStatic() || initMethod.getVisibility() != Visibility.PUBLIC) {
      throwInitMethodNotFound(bean, initMethodName);
    }

    final GeneratorContext context = this.getGeneratorContext();
    context.debug("Overriding satisfyInit to call " + initMethod);

    final NewType beanFactory = bean.getFactoryBean();
    final Method beanFactoryInitMethod = beanFactory.getMostDerivedMethod(Constants.SATISFY_INIT, this
        .getParameterListWithOnlyObject());
    final NewMethod newMethod = beanFactoryInitMethod.copy(beanFactory);
View Full Code Here

      context.delayedBranch();

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

      while (true) {
        if (bean instanceof Rpc) {
          this.overrideFactoryBeanSatisfyPropertiesWithSettingServiceEntryPoint((Rpc) bean);
          break;
View Full Code Here

    final String serviceEntryPoint = rpc.getServiceEntryPoint();
    addressValue.setValue(serviceEntryPoint);

    body.addProperty(setter, addressValue);

    context.debug("serviceEntryPoint: \"" + serviceEntryPoint + "\"");
  }

  /**
   * Override the factory bean method to set all property values after
   * validating a single unambiguous setter exists
View Full Code Here

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

    final GeneratorContext context = this.getGeneratorContext();
    final Type voidType = this.getGeneratorContext().getVoid();
    final Type beanType = bean.getType();
    context.debug(beanType.getName());

    final SetPropertiesTemplatedFile body = new SetPropertiesTemplatedFile();
    body.setBean(beanType);

    final NewType factoryBean = bean.getFactoryBean();
View Full Code Here

      }

      final Method setter = (Method) matchingSetters.get(0);
      body.addProperty(setter, value);

      context.debug(propertyName + "=" + value);
    }
  }

  protected void prepareValue(final Value value) {
    while (true) {
View Full Code Here

    while (i.hasNext()) {
      if (null == imageFactory) {
        imageFactory = this.createImageFactory();

        context.branch();
        context.debug("Creating abstract getters on image factory");
      }

      final ImageValue imageValue = i.next();

      // create abstract getter
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.