Package org.apache.tapestry.resource

Examples of org.apache.tapestry.resource.ClasspathResourceLocation


        finalSymbols.put(FIELD_SYMBOL, field);
        finalSymbols.put(FORM_SYMBOL, form);
        finalSymbols.put(VALIDATOR_SYMBOL, this);

        IResourceLocation location =
            new ClasspathResourceLocation(engine.getResourceResolver(), scriptPath);

        IScript script = source.getScript(location);

        Body body = Body.get(cycle);
View Full Code Here


            // can't be used because it is often a ContextResourceLocation,
            // not a ClasspathResourceLocation.

            if (path.startsWith("/"))
            {
                baseLocation = new ClasspathResourceLocation(_resolver, "/");
                path = path.substring(1);
            }

            return new PrivateAsset(
                (ClasspathResourceLocation) findAsset(assetName,
View Full Code Here

    protected IResourceLocation getApplicationSpecificationLocation() throws ServletException
    {
        String path = getApplicationSpecificationPath();

        if (path != null)
            return new ClasspathResourceLocation(_resolver, path);

        ServletContext context = getServletContext();
        String servletName = getServletName();
        String expectedName = servletName + ".application";
View Full Code Here

        finalSymbols.put(FIELD_SYMBOL, field);
        finalSymbols.put(FORM_SYMBOL, form);
        finalSymbols.put(VALIDATOR_SYMBOL, this);

        IResourceLocation location =
            new ClasspathResourceLocation(engine.getResourceResolver(), scriptPath);

        IScript script = source.getScript(location);

    Body body = Body.get(cycle);
View Full Code Here

    private void writeExternalScripts(IMarkupWriter writer)
    {
        int count = Tapestry.size(_externalScripts);
        for (int i = 0; i < count; i++)
        {
            ClasspathResourceLocation scriptLocation =
                (ClasspathResourceLocation) _externalScripts.get(i);

            // This is still very awkward!  Should move the code inside PrivateAsset somewhere
            // else, so that an asset does not have to be created to to build the URL.
            PrivateAsset asset = new PrivateAsset(scriptLocation, null);
View Full Code Here

            // can't be used because it is often a ContextResourceLocation,
            // not a ClasspathResourceLocation.

            if (path.startsWith("/"))
            {
                baseLocation = new ClasspathResourceLocation(_resolver, "/");
                path = path.substring(1);
            }

            return new PrivateAsset(
                (ClasspathResourceLocation) findAsset(assetName,
View Full Code Here

        IResourceLocation includeLocation = null;

        if (_resourcePath.startsWith("/"))
        {
            includeLocation =
                new ClasspathResourceLocation(
                    session.getRequestCycle().getEngine().getResourceResolver(),
                    _resourcePath);
        }
        else
        {
View Full Code Here

    public synchronized INamespace getFrameworkNamespace()
    {
        if (_frameworkNamespace == null)
        {
            IResourceLocation frameworkLocation =
                new ClasspathResourceLocation(_resolver, "/org/apache/tapestry/Framework.library");

            ILibrarySpecification ls = getLibrarySpecification(frameworkLocation);

            _frameworkNamespace = new Namespace(INamespace.FRAMEWORK_NAMESPACE, null, ls, this);
        }
View Full Code Here

    protected IResourceLocation getApplicationSpecificationLocation() throws ServletException
    {
        String path = getApplicationSpecificationPath();

        if (path != null)
            return new ClasspathResourceLocation(_resolver, path);

        ServletContext context = getServletContext();
        String servletName = getServletName();
        String expectedName = servletName + ".application";
View Full Code Here

    public PrivateAsset getAssetForOpenNode(){
        if(m_objOpenAsset == null){
            //m_objOpenAsset = new PrivateAsset(m_strOpenAssetsURL);
            m_objOpenAsset =
                new PrivateAsset
                (new ClasspathResourceLocation
                 (new DefaultResourceResolver(), m_strOpenAssetsURL), null);
        }
        return m_objOpenAsset;
  }
View Full Code Here

TOP

Related Classes of org.apache.tapestry.resource.ClasspathResourceLocation

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.