Examples of inject()


Examples of br.com.caelum.tubaina.parser.TubainaModule.inject()

        LOG.warn(e);
      } else {
        throw e;
      }
    }
    module.inject(b);

    File file = new File(outputDir, parseType.getType());
    FileUtils.forceMkdir(file);
    File bibliographyFile = new File(inputDir, "bib.xml");
    if (bibliographyFile.exists()) {
View Full Code Here

Examples of br.com.caelum.tubaina.parser.html.desktop.HtmlModule.inject()

    String input = "* Refactoring, Martin Fowler\n\n"
        + "* Effective Java, Joshua Bloch\n\n* Design Patterns, Erich Gamma et al";
    List<Chunk> chunks = new ChunkSplitter(null, "list").splitChunks(input);
    HtmlModule module = new HtmlModule();
    for (Chunk chunk : chunks) {
      module.inject(chunk);
    }
    Assert.assertEquals(3, chunks.size());
    Assert.assertEquals("<li>Refactoring, Martin Fowler</li>", chunks.get(0).asString());
    Assert.assertEquals("<li>Effective Java, Joshua Bloch</li>", chunks.get(1).asString());
    Assert.assertEquals("<li>Design Patterns, Erich Gamma et al</li>", chunks.get(2).asString());
View Full Code Here

Examples of buildcraft.core.inventory.TransactorSimple.inject()

      pickTime++;

      if (pickTime > 5) {
        TransactorSimple inventoryInsert = new TransactorSimple(robot);

        target.getEntityItem().stackSize -= inventoryInsert.inject(
            target.getEntityItem(), ForgeDirection.UNKNOWN,
            true);

        if (target.getEntityItem().stackSize <= 0) {
          target.setDead();
View Full Code Here

Examples of client.net.sf.saxon.ce.expr.parser.CodeInjector.inject()

            exp = makeExpressionVisitor().typeCheck(exp, Type.ITEM_TYPE);
            exp = ExpressionTool.resolveCallsToCurrentFunction(exp, getConfiguration());
            if (LogConfiguration.loggingIsEnabled() && LogController.traceIsEnabled()) {
              CodeInjector injector = ((XSLTTraceListener)LogController.getTraceListener()).getCodeInjector();
              String name = "";
              exp = injector.inject(exp, getStaticContext(), Location.XPATH_IN_XSLT, new StructuredQName("", "", name));
            }
            return exp;
        } catch (XPathException err) {
            // we can't report a dynamic error such as divide by zero unless the expression
            // is actually executed.
View Full Code Here

Examples of client.net.sf.saxon.ce.expr.parser.CodeInjector.inject()

                    // because of xml:space="preserve"
                    Instruction text = new ValueOf(new StringLiteral(node.getStringValue()), false);
                    text.setSourceLocator(this);
                    if (LogConfiguration.loggingIsEnabled() && LogController.traceIsEnabled()) {
                      CodeInjector injector = ((XSLTTraceListener)LogController.getTraceListener()).getCodeInjector();
                        Expression tracer = injector.inject(text, getStaticContext(), StandardNames.XSL_TEXT, null);
                        tracer.setSourceLocator(this);
                        if (tracer instanceof Instruction) {
                          text = (Instruction)tracer;
                        }
                    }
View Full Code Here

Examples of cn.edu.hfut.dmic.webcollector.generator.Injector.inject()

     * 注入
     * @throws Exception
     */
    public void inject() throws Exception {
        Injector injector = createInjector();
        injector.inject(seeds, true);
    }

    /**
     * 爬取成功时执行的方法
     * @param page 成功爬取的网页/文件
View Full Code Here

Examples of com.caucho.config.type.ConfigType.inject()

    throws ConfigException
  {
    try {
      ConfigType type = TypeFactory.getType(bean.getClass());

      type.inject(bean);
    } catch (RuntimeException e) {
      throw e;
    } catch (Exception e) {
      throw ConfigException.create(e);
    }
View Full Code Here

Examples of com.force.sdk.codegen.injector.TemplateInjector.inject()

        for (DescribeSObjectResult dsr : objectFilter.filter(allOrgObjects)) {
            // Before we write a new source file, make sure the template is reset
            template.reset();
           
            // Inject the data into the template
            templateInjector.inject(userInfo, dsr, fieldFilter.filter(dsr), template);
           
            Writer writer = null;
            try {
                writer = writerProvider.getWriter(userInfo, dsr);
                template.write(writer);
View Full Code Here

Examples of com.opensymphony.xwork2.inject.Container.inject()

        ValueStack stack = (ValueStack) ctx.get("stack");
        HttpServletRequest req = (HttpServletRequest) stack.getContext().get(ServletActionContext.HTTP_REQUEST);
        HttpServletResponse res = (HttpServletResponse) stack.getContext().get(ServletActionContext.HTTP_RESPONSE);
        Component bean = getBean(stack, req, res);
        Container container = (Container) stack.getContext().get(ActionContext.CONTAINER);
        container.inject(bean);
        // get the parameters
        Map params = createPropertyMap(ctx, node);
        bean.copyParams(params);
        //bean.addAllParameters(params);
        bean.start(writer);
View Full Code Here

Examples of com.sun.faces.spi.InjectionProvider.inject()

            InjectionProvider injectionProvider =
                  associate.getInjectionProvider();
           
            // Perform resource injection first
            if (injectable) {
                injectionProvider.inject(bean);   
            }
           
           
            // now setup the managed properties which may
            // leverage the injected info from the previous step
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.