Package org.jboss.errai.codegen.meta.impl.build

Examples of org.jboss.errai.codegen.meta.impl.build.BuildMetaClass


  static final String RENDERED_PROXIES = "^RenderedProxies";


  public List<Statement> createProxyDeclaration(InjectionContext context, Statement beanRef) {
    if (isProxied()) {
      final BuildMetaClass type = ProxyMaker.makeProxy(
          getInjectedType(),
          context.getProcessingContext().isGwtTarget() ? "jsni" : "reflection",
          getProxyPropertyMap(),
          getWeavingStatementsMap()
      );

      if (!context.hasAttribute(RENDERED_PROXIES)) {
        context.setAttribute(RENDERED_PROXIES, new HashSet<String>());

      }
      final Set<String> proxies = (Set<String>) context.getAttribute(RENDERED_PROXIES);
      if (!proxies.contains(type.getCanonicalName())) {
        context.getProcessingContext().getBootstrapClass()
            .addInnerClass(new InnerClass(type));
        proxies.add(type.getCanonicalName());
      }

      final List<Statement> proxyCloseStmts = new ArrayList<Statement>();

      proxyCloseStmts.add(Stmt.declareFinalVariable(
View Full Code Here


        Implementations.implement(Bootstrapper.class, packageName, className);

    logger.log(com.google.gwt.core.ext.TreeLogger.Type.DEBUG, "Generating IOC Bootstrapper "
        + packageName + "." + className);

    final BuildMetaClass bootStrapClass = classStructureBuilder.getClassDefinition();
    final Context buildContext = bootStrapClass.getContext();

    buildContext.addInterningCallback(new BootstrapInterningCallback(classStructureBuilder, buildContext));

    final BlockBuilder<?> blockBuilder =
        classStructureBuilder.publicMethod(contextClass, "bootstrapContainer")
View Full Code Here

TOP

Related Classes of org.jboss.errai.codegen.meta.impl.build.BuildMetaClass

Copyright © 2018 www.massapicom. 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.