Package rocket.generator.rebind

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


    rpc.setSingleton(true);
    rpc.setEagerLoaded(false);

    context.debug("singleton");
    context.debug("lazy load");

    final String interfaceName = rpc.getServiceInterface();
    final String id = rpc.getId();
    final Type beanType = this.getInterfaceType(id, interfaceName + Constants.ASYNC_SUFFIX);
    rpc.setType(beanType);
View Full Code Here


    final String interfaceName = rpc.getServiceInterface();
    final String id = rpc.getId();
    final Type beanType = this.getInterfaceType(id, interfaceName + Constants.ASYNC_SUFFIX);
    rpc.setType(beanType);

    context.debug("service interface: " + interfaceName);
    context.debug("async service interface: " + beanType.getName());

    final Type superType = this.getSingletonFactoryBean();
    final NewConcreteType beanFactory = this.getBeanFactory();
    final NewNestedType factoryBean = beanFactory.newNestedType();
View Full Code Here

    final String id = rpc.getId();
    final Type beanType = this.getInterfaceType(id, interfaceName + Constants.ASYNC_SUFFIX);
    rpc.setType(beanType);

    context.debug("service interface: " + interfaceName);
    context.debug("async service interface: " + beanType.getName());

    final Type superType = this.getSingletonFactoryBean();
    final NewConcreteType beanFactory = this.getBeanFactory();
    final NewNestedType factoryBean = beanFactory.newNestedType();
    factoryBean.setStatic(false);
View Full Code Here

    factoryBean.setNestedName(this.escapeBeanIdToBeClassNameSafe(id) + Constants.FACTORY_BEAN_SUFFIX);
    factoryBean.setSuperType(superType);
    factoryBean.setVisibility(Visibility.PRIVATE);
    rpc.setFactoryBean(factoryBean);

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

    this.addBean(rpc);
  }

  /**
 
View Full Code Here

      final Aspect aspect = iterator.next();

      context.branch();
      final String advisorId = aspect.getAdvisor();
      final String targetBeanId = aspect.getTarget();
      context.debug(advisorId + "=" + targetBeanId);

      aspect.setMethodMatcher(methodMatcherFactory.create(aspect.getMethodExpression()));

      final Bean bean = this.getBean(targetBeanId);
      this.verifyProxyTarget(bean);
View Full Code Here

    final Type type = bean.getType();
    final MethodMatcher matcher = aspect.getMethodMatcher();

    final GeneratorContext context = this.getGeneratorContext();
    context.branch();
    context.debug("Discovering methods that match: " + matcher + " against " + type);

    final List<Method> matchedMethods = new ArrayList<Method>();
    final Type object = context.getObject();

    final VirtualMethodVisitor visitor = new VirtualMethodVisitor() {
View Full Code Here

          break;
        }

        if (method.getVisibility() == Visibility.PUBLIC && matcher.matches(method)) {
          matchedMethods.add(method);
          context.debug(method.toString());
        }
        return false;
      }

      @Override
View Full Code Here

    if (matchedMethods.isEmpty()) {
      throwNoMatchedMethods(aspect);
    }

    context.debug("Matched " + matchedMethods.size() + " methods(s).");
    context.unbranch();
  }

  protected void throwTargetMethodIsFinal(final Method method) {
    throw new BeanFactoryGeneratorException("The method " + method
View Full Code Here

  }

  protected Set<Bean> filterBeansRequiringInterceptors() {
    final GeneratorContext context = this.getGeneratorContext();
    context.branch();
    context.debug("Filtering out Beans that dont have any aspects.");

    final Set<Bean> advised = new HashSet<Bean>();

    final Map<String,Bean> beans = this.getBeans();
    final Iterator<Bean> beansIterator = beans.values().iterator();
View Full Code Here

    while (beansIterator.hasNext()) {
      final Bean bean = beansIterator.next();
      final List<Aspect> aspectss = bean.getAspects();
      if (aspectss.isEmpty()) {
        context.debug(bean.getId());
        continue;
      }
      advised.add(bean);

      context.debug(bean.getId());
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.