Package rocket.generator.rebind

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


      final String destroyMethodName = bean.getDestroyMethod();

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

        this.overrideSingletonFactoryBeanDestroy(bean);

        context.unbranch();
      }
View Full Code Here


        this.overrideSingletonFactoryBeanDestroy(bean);

        context.unbranch();
      }
    }
    context.debug(singletonCount == 0 ? "No singletons" : customDestroyMethodCount + " singletons have custom destroy methods.");

    context.unbranch();
  }

  /**
 
View Full Code Here

    if (null == destroyMethod || destroyMethod.isStatic() || destroyMethod.getVisibility() != Visibility.PUBLIC) {
      throwCustomMethodNotFound(bean, destroyMethodName);
    }

    final GeneratorContext context = this.getGeneratorContext();
    context.debug("Overriding destroy to call " + destroyMethod + " for bean: " + bean);

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

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

      final String message = "Initializers";
      context.debug(message);

      writer.beginJavaDocComment();
      writer.print(message);
      writer.endJavaDocComment();
View Full Code Here

      buf.append(this.getSimpleName());

      context.branch();

      context.debug(buf.toString());

      this.logSuperType();
      this.logImplementedInterfaces();

      context.unbranch();
View Full Code Here

    final GeneratorContext context = this.getGeneratorContext();
    if (context.isDebugEnabled()) {
      final Type superType = this.getSuperType();
      final Type object = context.getObject();
      if (false == superType.equals(object)) {
        context.debug("extends " + this.getSuperType().getName());
      }
    }
  }

  protected void logImplementedInterfaces() {
View Full Code Here

    if (context.isDebugEnabled()) {

      final Set<Type> interfaces = this.getInterfaces();
      if (false == interfaces.isEmpty()) {
        context.branch();
        context.debug("implements");

        final Iterator<Type> interfacesIterator = interfaces.iterator();
        while (interfacesIterator.hasNext()) {
          final Type interfacee = interfacesIterator.next();
          context.debug(interfacee.getName());
View Full Code Here

        context.debug("implements");

        final Iterator<Type> interfacesIterator = interfaces.iterator();
        while (interfacesIterator.hasNext()) {
          final Type interfacee = interfacesIterator.next();
          context.debug(interfacee.getName());
        }

        context.unbranch();
      }
    }
View Full Code Here

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

      final String message = "Constructors";
      context.debug(message);

      writer.beginJavaDocComment();
      writer.print(message);
      writer.endJavaDocComment();
View Full Code Here

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

      final String message = "Fields";
      context.debug(message);

      writer.beginJavaDocComment();
      writer.print(message);
      writer.endJavaDocComment();
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.