Package org.apache.tapestry.spec

Examples of org.apache.tapestry.spec.ApplicationSpecification


     *
     **/

    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

        return null;
    }

    private IApplicationSpecification constructStandinSpecification(String name)
    {
        ApplicationSpecification result = new ApplicationSpecification();

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

        Resource virtualLocation = new WebContextResource(_context, "/WEB-INF/"
                + name + ".application");

        result.setSpecificationLocation(virtualLocation);

        result.setName(name);

        return result;
    }
View Full Code Here

        return null;
    }

    private IApplicationSpecification constructStandinSpecification(String name)
    {
        ApplicationSpecification result = new ApplicationSpecification();

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

        Resource virtualLocation = new WebContextResource(_context, "/WEB-INF/" + name
                + ".application");

        result.setSpecificationLocation(virtualLocation);

        result.setName(name);

        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

        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

    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.