Examples of ToolContext


Examples of org.apache.cxf.tools.common.ToolContext

    @Ignore("missing a file")
    public void testCodeGenNoIds2() {
        try {
            JAXRSContainer container = new JAXRSContainer(null);

            ToolContext context = new ToolContext();
            context.put(WadlToolConstants.CFG_OUTPUTDIR, output.getCanonicalPath());
            context.put(WadlToolConstants.CFG_WADLURL, getLocation("/wadl/multipleResources.xml"));
            context.put(WadlToolConstants.CFG_COMPILE, "true");
           
            container.setContext(context);
            container.execute();

            assertNotNull(output.list());
View Full Code Here

Examples of org.apache.cxf.tools.common.ToolContext

    @Test   
    public void testCodeGenWithResourceSet() {
        try {
            JAXRSContainer container = new JAXRSContainer(null);

            ToolContext context = new ToolContext();
            context.put(WadlToolConstants.CFG_OUTPUTDIR, output.getCanonicalPath());
            context.put(WadlToolConstants.CFG_WADLURL, getLocation("/wadl/singleResourceWithRefs.xml"));
            context.put(WadlToolConstants.CFG_RESOURCENAME, "CustomResource");
            context.put(WadlToolConstants.CFG_COMPILE, "true");
           
            container.setContext(context);
            container.execute();

            assertNotNull(output.list());
View Full Code Here

Examples of org.apache.velocity.tools.ToolContext

    if (!(velocityContext instanceof ToolContext)) {
      return;
    }

    ToolContext ctxt = (ToolContext) velocityContext;
   
    // get the output encoding
    Object outputEncodingObj = ctxt.get("outputEncoding");
    if (outputEncodingObj instanceof String) {
      this.outputEncoding = (String) outputEncodingObj;
    }
  }
View Full Code Here

Examples of org.locationtech.udig.project.ui.internal.tool.ToolContext

     * @return a ToolContext
     * @see ToolContext
     */
    public static IToolContext createContext(IMap map) {
        if (map instanceof org.locationtech.udig.project.internal.Map) {
            ToolContext context = new ToolContextImpl();
            context
                    .setMapInternal((org.locationtech.udig.project.internal.Map) map);
            return context;
        }
        return null;
    }
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.