Package org.apache.tapestry.spec

Examples of org.apache.tapestry.spec.ApplicationSpecification


        expect(source, "godzilla", null);
    }

    public void testApplicationSpecification()
    {
        ApplicationSpecification spec = new ApplicationSpecification();

        spec.setProperty("fred", "barney");

        IPropertySource source = new PropertyHolderPropertySource(spec);

        expect(source, "fred", "barney");
        expect(source, "wilma", null);
View Full Code Here


        trainForServletInit(configControl, config);

        config.getInitParameter(ApplicationSpecificationInitializer.APP_SPEC_PATH_PARAM);
        configControl.setReturnValue(appSpecResource.getPath());

        IApplicationSpecification as = new ApplicationSpecification();

        MockControl parserControl = newControl(ISpecificationParser.class);
        ISpecificationParser parser = (ISpecificationParser) parserControl.getMock();

        i.setParser(parser);
View Full Code Here

        context.getResource(r.getPath());
        contextControl.setReturnValue(new URL("file:/context" + r.getPath()));

        log.debug("Found " + r);

        IApplicationSpecification as = new ApplicationSpecification();

        MockControl parserControl = newControl(ISpecificationParser.class);
        ISpecificationParser parser = (ISpecificationParser) parserControl.getMock();

        i.setParser(parser);
View Full Code Here

        context.getResource(r.getPath());
        contextControl.setReturnValue(new URL("file:/context" + r.getPath()));

        log.debug("Found " + r);

        IApplicationSpecification as = new ApplicationSpecification();

        MockControl parserControl = newControl(ISpecificationParser.class);
        ISpecificationParser parser = (ISpecificationParser) parserControl.getMock();

        i.setParser(parser);
View Full Code Here

        configControl.setReturnValue("wilma");

        config.getServletContext();
        configControl.setReturnValue(context);

        IApplicationSpecification as = new ApplicationSpecification();
        as.setName("wilma");
        as.setSpecificationLocation(new ContextResource(context, "/WEB-INF/wilma.application"));

        MockControl agControl = newControl(ApplicationGlobals.class);

        ApplicationGlobals ag = (ApplicationGlobals) agControl.getMock();
View Full Code Here

        __CLOVER_300_0.S[7002]++;return null;
    } finally { }}

    private IApplicationSpecification constructStandinSpecification(HttpServlet servlet)
    {try { __CLOVER_300_0.M[1440]++;
        __CLOVER_300_0.S[7003]++;ApplicationSpecification result = new ApplicationSpecification();

        __CLOVER_300_0.S[7004]++;Resource virtualLocation = new ContextResource(servlet.getServletContext(), "/WEB-INF/");

        __CLOVER_300_0.S[7005]++;result.setSpecificationLocation(virtualLocation);

        __CLOVER_300_0.S[7006]++;result.setName(servlet.getServletName());

        // result.setResourceResolver(_resolver);

        __CLOVER_300_0.S[7007]++;return result;
    } finally { }}
View Full Code Here

     *
     **/

    protected IApplicationSpecification constructStandinSpecification()
    {
        ApplicationSpecification result = new ApplicationSpecification();

        IResourceLocation virtualLocation =
            new ContextResourceLocation(getServletContext(), "/WEB-INF/");

        result.setSpecificationLocation(virtualLocation);

        result.setName(getServletName());
        result.setResourceResolver(_resolver);

        return result;
    }
View Full Code Here

     *
     **/

    protected IApplicationSpecification constructStandinSpecification()
    {
        ApplicationSpecification result = new ApplicationSpecification();

        IResourceLocation virtualLocation =
            new ContextResourceLocation(getServletContext(), "/WEB-INF/");

        result.setSpecificationLocation(virtualLocation);

        result.setName(getServletName());
        result.setResourceResolver(_resolver);

        return result;
    }
View Full Code Here

    private IApplicationSpecification constructStandinSpecification(HttpServlet servlet)
    {
        String servletName = servlet.getServletName();

        ApplicationSpecification result = new ApplicationSpecification();

        // Pretend the file exists in the most common expected location.

        Resource virtualLocation = new ContextResource(servlet.getServletContext(), "/WEB-INF/"
                + servletName + ".application");

        result.setSpecificationLocation(virtualLocation);

        result.setName(servletName);

        return result;
    }
View Full Code Here

    private IApplicationSpecification constructStandinSpecification(HttpServlet servlet)
    {
        String servletName = servlet.getServletName();

        ApplicationSpecification result = new ApplicationSpecification();

        // Pretend the file exists in the most common expected location.

        Resource virtualLocation = new ContextResource(servlet.getServletContext(), "/WEB-INF/" + servletName + ".application");

        result.setSpecificationLocation(virtualLocation);

        result.setName(servletName);

        return result;
    }
View Full Code Here

TOP

Related Classes of org.apache.tapestry.spec.ApplicationSpecification

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.