Package org.apache.tapestry.spec

Examples of org.apache.tapestry.spec.ILibrarySpecification


        if (libraryId.equals(INamespace.FRAMEWORK_NAMESPACE)
                || libraryId.equals(INamespace.APPLICATION_NAMESPACE))
            throw new DocumentParseException(ParseMessages
                    .frameworkLibraryIdIsReserved(INamespace.FRAMEWORK_NAMESPACE), getLocation());

        ILibrarySpecification ls = (ILibrarySpecification) peekObject();

        ls.setLibrarySpecificationPath(libraryId, path);

        push(_elementName, null, STATE_NO_CONTENT);
    }
View Full Code Here


    private void enterPage()
    {
        String name = getValidatedAttribute("name", PAGE_NAME_PATTERN, "invalid-page-name");
        String path = getAttribute("specification-path");

        ILibrarySpecification ls = (ILibrarySpecification) peekObject();

        ls.setPageSpecificationPath(name, path);

        push(_elementName, null, STATE_NO_CONTENT);
    }
View Full Code Here

        // following little kludge:

        __CLOVER_97_0.S[2221]++;if ((((location.getResourceURL() == null && path.startsWith("/")) && (++__CLOVER_97_0.CT[415] != 0)) || (++__CLOVER_97_0.CF[415] == 0))){
            __CLOVER_97_0.S[2222]++;location = new ClasspathResource(_specification.getResourceResolver(), path);}

        __CLOVER_97_0.S[2223]++;ILibrarySpecification ls = _specificationSource.getLibrarySpecification(location);

        __CLOVER_97_0.S[2224]++;return new Namespace(id, this, ls, _specificationSource);
    } finally { }}
View Full Code Here

        __CLOVER_335_0.S[7543]++;return result;
    } finally { }}

    public synchronized ILibrarySpecification getLibrarySpecification(Resource resourceLocation)
    {try { __CLOVER_335_0.M[1633]++;
        __CLOVER_335_0.S[7544]++;ILibrarySpecification result = (LibrarySpecification) _libraryCache.get(resourceLocation);

        __CLOVER_335_0.S[7545]++;if ((((result == null) && (++__CLOVER_335_0.CT[1301] != 0)) || (++__CLOVER_335_0.CF[1301] == 0))){
        {
            __CLOVER_335_0.S[7546]++;result = parseLibrarySpecification(resourceLocation);
            __CLOVER_335_0.S[7547]++;_libraryCache.put(resourceLocation, result);
View Full Code Here

        __CLOVER_335_0.S[7552]++;if ((((_frameworkNamespace == null) && (++__CLOVER_335_0.CT[1303] != 0)) || (++__CLOVER_335_0.CF[1303] == 0))){
        {
            __CLOVER_335_0.S[7553]++;Resource frameworkLocation =
                new ClasspathResource(_classResolver, "/org/apache/tapestry/Framework.library");

            __CLOVER_335_0.S[7554]++;ILibrarySpecification ls = getLibrarySpecification(frameworkLocation);

            __CLOVER_335_0.S[7555]++;_frameworkNamespace = new Namespace(INamespace.FRAMEWORK_NAMESPACE, null, ls, this);
        }}

        __CLOVER_335_0.S[7556]++;return _frameworkNamespace;
View Full Code Here

    private void beginLibrarySpecificationInitial()
    {try { __CLOVER_225_0.M[2768]++;
        __CLOVER_225_0.S[11257]++;expectElement("library-specification");

        __CLOVER_225_0.S[11258]++;ILibrarySpecification ls = _factory.createLibrarySpecification();

        __CLOVER_225_0.S[11259]++;_rootObject = ls;

        __CLOVER_225_0.S[11260]++;push(_elementName, ls, STATE_LIBRARY_SPECIFICATION);
    } finally { }}
View Full Code Here

        __CLOVER_225_0.S[11339]++;setter.apply(description);
    } finally { }}

    private void endLibrarySpecification()
    {try { __CLOVER_225_0.M[2777]++;
        __CLOVER_225_0.S[11340]++;ILibrarySpecification spec = (ILibrarySpecification) peekObject();

        __CLOVER_225_0.S[11341]++;spec.setResourceResolver(_resolver);
        __CLOVER_225_0.S[11342]++;spec.setSpecificationLocation(getResource());

        __CLOVER_225_0.S[11343]++;spec.instantiateImmediateExtensions();
    } finally { }}
View Full Code Here

                "type",
                COMPONENT_ALIAS_PATTERN,
                "invalid-component-type");
        __CLOVER_225_0.S[11421]++;String path = getAttribute("specification-path");

        __CLOVER_225_0.S[11422]++;ILibrarySpecification ls = (ILibrarySpecification) peekObject();

        __CLOVER_225_0.S[11423]++;ls.setComponentSpecificationPath(type, path);

        __CLOVER_225_0.S[11424]++;push(_elementName, null, STATE_NO_CONTENT);
    } finally { }}
View Full Code Here

        __CLOVER_225_0.S[11435]++;IExtensionSpecification es = _factory.createExtensionSpecification();

        __CLOVER_225_0.S[11436]++;es.setClassName(className);
        __CLOVER_225_0.S[11437]++;es.setImmediate(immediate);

        __CLOVER_225_0.S[11438]++;ILibrarySpecification ls = (ILibrarySpecification) peekObject();

        __CLOVER_225_0.S[11439]++;ls.addExtensionSpecification(name, es);

        __CLOVER_225_0.S[11440]++;push(_elementName, es, STATE_EXTENSION);
    } finally { }}
View Full Code Here

        __CLOVER_225_0.S[11452]++;if ((((libraryId.equals(INamespace.FRAMEWORK_NAMESPACE)) && (++__CLOVER_225_0.CT[1968] != 0)) || (++__CLOVER_225_0.CF[1968] == 0))){
            __CLOVER_225_0.S[11453]++;throw new DocumentParseException(ParseMessages
                    .frameworkLibraryIdIsReserved(INamespace.FRAMEWORK_NAMESPACE), getLocation(),
                    null);}

        __CLOVER_225_0.S[11454]++;ILibrarySpecification ls = (ILibrarySpecification) peekObject();

        __CLOVER_225_0.S[11455]++;ls.setLibrarySpecificationPath(libraryId, path);

        __CLOVER_225_0.S[11456]++;push(_elementName, null, STATE_NO_CONTENT);
    } finally { }}
View Full Code Here

TOP

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

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.