Examples of Context


Examples of org.apache.velocity.context.Context

        //request.setAttribute(ServletActionContext.WEBWORK_VALUESTACK_KEY,
        // stack);
        //Moved to WebWorkPortlet doService()

        VelocityManager velocityManager = VelocityManager.getInstance();
        Context resultContext = velocityManager.createContext(stack, request, response);

        response.setContentType("text/html");

        try {
            String location = (String) ActionContext.getContext().get("template");
View Full Code Here

Examples of org.apache.ws.jaxme.generator.sg.Context

        final TypeSG typeSG = objectSG.getTypeSG();
        if (typeSG.isComplex()) {
          final CustomTableData customTableData = (CustomTableData) typeSG.getProperty(jdbcSG.getKey());
          if (customTableData != null) {
            Element manager = (Element) node;
            final Context ctx = typeSG.getComplexTypeSG().getClassContext();
            manager.setAttributeNS(uri, "pmClass", ctx.getPMName().toString());

            final TableDetails tableDetails = customTableData.getTableDetails();
            final String driver = tableDetails.getDriver();
            if (driver != null) {
              createProperty(manager, "jdbc.driver", driver);
View Full Code Here

Examples of org.ardverk.dht.storage.message.Context

   
    Set<KUID> dst = new TreeSet<KUID>();
    Key key = KeyFactory.parseKey("ardverk:///hello/world");
    for (int i = 0; i < count; i++) {
      KUID valueId = KUID.createRandom(key.getId());
      Context context = new Context();
      context.addHeader("X-Index", Integer.toString(i));
     
      index.add(key, context, valueId);
      dst.add(valueId);
    }
   
View Full Code Here

Examples of org.asturlinux.frade.currin.machine.Context

    public void run(Machine m, Vector _runtime_params)
  throws InterpreterException {
  Vector _param_refs = preparingParameters(m,_runtime_params);
 
  Context current = new Context(this, _param_refs);
  m.getContextStack().pushContext(current);
    }
View Full Code Here

Examples of org.beangle.ems.rule.Context

    rule2.setServiceName("org.beangle.rule.impl.RuleExecutor2");

    // rules.add(rule1);
    rules.add(rule2);

    Context context = new SimpleContext();
    RuleExecutor exceutor = builder.build(rules, false);
    exceutor.execute(context);
  }
View Full Code Here

Examples of org.beangle.model.transfer.exporter.Context

    if (StringUtils.isEmpty(fileName)) {
      fileName = "exportResult";
    }

    // 配置导出上下文
    Context context = new Context();
    context.put("format", format);
    context.put("exportFile", fileName);
    context.put("template", template);
    String properties = get("properties");
    if (null != properties) {
      String[] props = StringUtils.split(properties, ",");
      List<String> keys = CollectUtils.newArrayList();
      List<String> titles = CollectUtils.newArrayList();
      for (String prop : props) {
        keys.add(StringUtils.substringBefore(prop, ":"));
        titles.add(getTextInternal(StringUtils.substringAfter(prop, ":")));
      }
      context.put(Context.KEYS, StrUtils.join(keys, ","));
      context.put(Context.TITLES, StrUtils.join(titles, ","));
    } else {
      context.put(Context.KEYS, get("keys"));
      context.put(Context.TITLES, get("titles"));
    }
    context.put(Context.EXTRACTOR, getPropertyExtractor());

    HttpServletResponse response = ServletActionContext.getResponse();
    Exporter exporter = buildExporter(context);
    exporter.getWriter().setOutputStream(response.getOutputStream());
    configExporter(exporter, context);
View Full Code Here

Examples of org.beangle.rule.Context

    rule2.setServiceName("org.beangle.rule.impl.RuleExecutor2");

    // rules.add(rule1);
    rules.add(rule2);

    Context context = new SimpleContext();
    RuleExecutor exceutor = builder.build(rules, false);
    exceutor.execute(context);
  }
View Full Code Here

Examples of org.butor.json.service.Context

      @Override
      public Type getResponseType() {
        return byte[].class;
      }
    };
    final Context ctx = new Context() {
      @Override
      public ResponseHandler getResponseHandler() {
        return streamer;
      }
      @Override
View Full Code Here

Examples of org.codehaus.plexus.context.Context

        processCoreComponentConfiguration( "component-factory-manager", configurator, c );

        if ( componentFactoryManager instanceof Contextualizable )
        {
            Context context = getContext();

            context.put( PlexusConstants.PLEXUS_KEY, this );

            ( (Contextualizable) componentFactoryManager ).contextualize( getContext() );
        }

        // Component factory manager
View Full Code Here

Examples of org.commontemplate.core.Context

  }
 
  public static Context getCTLContext(){
    if(ctlEngine == null)
      return null;
    Context context = ctlContext.get();
    if(context == null){
      context = ctlEngine.createContext(new StringWriter());
      ctlContext.set(context);
    }
    return context;
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.