Examples of inject()

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

      } else {
        throw e;

    File file = new File(outputDir, parseType.getType());
    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) {
    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()


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

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

        if (target.getEntityItem().stackSize <= 0) {
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);
                    if (LogConfiguration.loggingIsEnabled() && LogController.traceIsEnabled()) {
                      CodeInjector injector = ((XSLTTraceListener)LogController.getTraceListener()).getCodeInjector();
                        Expression tracer = injector.inject(text, getStaticContext(), StandardNames.XSL_TEXT, null);
                        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());

    } 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
            // Inject the data into the template
            templateInjector.inject(userInfo, dsr, fieldFilter.filter(dsr), template);
            Writer writer = null;
            try {
                writer = writerProvider.getWriter(userInfo, dsr);
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);
        // get the parameters
        Map params = createPropertyMap(ctx, node);
View Full Code Here

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

            InjectionProvider injectionProvider =
            // Perform resource injection first
            if (injectable) {
            // now setup the managed properties which may
            // leverage the injected info from the previous step
View Full Code Here
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.