Package org.apache.tapestry.util

Examples of org.apache.tapestry.util.MultiKey


        __CLOVER_305_0.S[14023]++;return result;
    } finally { }}

    private MultiKey buildKey(Resource location, Locale locale)
    {try { __CLOVER_305_0.M[3286]++;
        __CLOVER_305_0.S[14024]++;return new MultiKey(new Object[]
        { location, locale.toString() }, false);
    } finally { }}
View Full Code Here


        __CLOVER_305_0.S[7038]++;Resource specificationLocation = component.getSpecification().getSpecificationLocation();
        __CLOVER_305_0.S[7039]++;Locale locale = component.getPage().getLocale();

        // Check to see if already in the cache

        __CLOVER_305_0.S[7040]++;MultiKey key = buildKey(specificationLocation, locale);

        __CLOVER_305_0.S[7041]++;Properties result = (Properties) _cache.get(key);

        __CLOVER_305_0.S[7042]++;if ((((result != null) && (++__CLOVER_305_0.CT[1226] != 0)) || (++__CLOVER_305_0.CF[1226] == 0))){
            __CLOVER_305_0.S[7043]++;return result;}
View Full Code Here

        __CLOVER_305_0.S[7059]++;Properties result = parent;

        __CLOVER_305_0.S[7060]++;if ((((!Tapestry.isBlank(language)) && (++__CLOVER_305_0.CT[1229] != 0)) || (++__CLOVER_305_0.CF[1229] == 0))){
        {
            __CLOVER_305_0.S[7061]++;Locale l = new Locale(language, "");
            __CLOVER_305_0.S[7062]++;MultiKey key = buildKey(baseResourceLocation, l);

            __CLOVER_305_0.S[7063]++;result = (Properties) _cache.get(key);

            __CLOVER_305_0.S[7064]++;if ((((result == null) && (++__CLOVER_305_0.CT[1230] != 0)) || (++__CLOVER_305_0.CF[1230] == 0))){
            {
                __CLOVER_305_0.S[7065]++;result = readProperties(component, baseResourceLocation, baseName, l, parent);
                __CLOVER_305_0.S[7066]++;_cache.put(key, result);
            }}

            __CLOVER_305_0.S[7067]++;parent = result;
        }}
        else{
            __CLOVER_305_0.S[7068]++;language = "";}

        __CLOVER_305_0.S[7069]++;if ((((Tapestry.isNonBlank(country)) && (++__CLOVER_305_0.CT[1231] != 0)) || (++__CLOVER_305_0.CF[1231] == 0))){
        {
            __CLOVER_305_0.S[7070]++;Locale l = new Locale(language, country);
            __CLOVER_305_0.S[7071]++;MultiKey key = buildKey(baseResourceLocation, l);

            __CLOVER_305_0.S[7072]++;result = (Properties) _cache.get(key);

            __CLOVER_305_0.S[7073]++;if ((((result == null) && (++__CLOVER_305_0.CT[1232] != 0)) || (++__CLOVER_305_0.CF[1232] == 0))){
            {
                __CLOVER_305_0.S[7074]++;result = readProperties(component, baseResourceLocation, baseName, l, parent);
                __CLOVER_305_0.S[7075]++;_cache.put(key, result);
            }}

            __CLOVER_305_0.S[7076]++;parent = result;
        }}
        else{
            __CLOVER_305_0.S[7077]++;country = "";}

        __CLOVER_305_0.S[7078]++;if ((((Tapestry.isNonBlank(variant)) && (++__CLOVER_305_0.CT[1233] != 0)) || (++__CLOVER_305_0.CF[1233] == 0))){
        {
            __CLOVER_305_0.S[7079]++;Locale l = new Locale(language, country, variant);
            __CLOVER_305_0.S[7080]++;MultiKey key = buildKey(baseResourceLocation, l);

            __CLOVER_305_0.S[7081]++;result = (Properties) _cache.get(key);

            __CLOVER_305_0.S[7082]++;if ((((result == null) && (++__CLOVER_305_0.CT[1234] != 0)) || (++__CLOVER_305_0.CF[1234] == 0))){
            {
View Full Code Here

        __CLOVER_305_0.S[7085]++;return result;
    } finally { }}

    private MultiKey buildKey(Resource location, Locale locale)
    {try { __CLOVER_305_0.M[1460]++;
        __CLOVER_305_0.S[7086]++;return new MultiKey(new Object[]
        { location, locale.toString() }, false);
    } finally { }}
View Full Code Here

        __CLOVER_338_0.S[7567]++;IComponentSpecification specification = component.getSpecification();
        __CLOVER_338_0.S[7568]++;Resource resource = specification.getSpecificationLocation();

        __CLOVER_338_0.S[7569]++;Locale locale = component.getPage().getLocale();

        __CLOVER_338_0.S[7570]++;Object key = new MultiKey(new Object[] { resource, locale }, false);

        __CLOVER_338_0.S[7571]++;ComponentTemplate result = searchCache(key);
        __CLOVER_338_0.S[7572]++;if ((((result != null) && (++__CLOVER_338_0.CT[1304] != 0)) || (++__CLOVER_338_0.CF[1304] == 0))){
            __CLOVER_338_0.S[7573]++;return result;}
View Full Code Here

        IComponentSpecification specification = component.getSpecification();
        IResourceLocation specificationLocation = specification.getSpecificationLocation();

        Locale locale = component.getPage().getLocale();

        Object key = new MultiKey(new Object[] { specificationLocation, locale }, false);

        ComponentTemplate result = searchCache(key);
        if (result != null)
            return result;
View Full Code Here

            component.getSpecification().getSpecificationLocation();
        Locale locale = component.getPage().getLocale();

        // Check to see if already in the cache

        MultiKey key = buildKey(specificationLocation, locale);

        Properties result = (Properties) _cache.get(key);

        if (result != null)
            return result;
View Full Code Here

        Properties result = parent;

        if (!Tapestry.isNull(language))
        {
            Locale l = new Locale(language, "");
            MultiKey key = buildKey(baseResourceLocation, l);

            result = (Properties) _cache.get(key);

            if (result == null)
                result = readProperties(baseResourceLocation, baseName, l, parent);

            _cache.put(key, result);

            parent = result;
        }
        else
            language = "";

        if (!Tapestry.isNull(country))
        {
            Locale l = new Locale(language, country);
            MultiKey key = buildKey(baseResourceLocation, l);

            result = (Properties) _cache.get(key);

            if (result == null)
                result = readProperties(baseResourceLocation, baseName, l, parent);

            _cache.put(key, result);

            parent = result;
        }
        else
            country = "";

        if (!Tapestry.isNull(variant))
        {
            Locale l = new Locale(language, country, variant);
            MultiKey key = buildKey(baseResourceLocation, l);

            result = (Properties) _cache.get(key);

            if (result == null)
                result = readProperties(baseResourceLocation, baseName, l, parent);
View Full Code Here

        return result;
    }

    private MultiKey buildKey(IResourceLocation location, Locale locale)
    {
        return new MultiKey(new Object[] { location, locale.toString()}, false);
    }
View Full Code Here

            component.getSpecification().getSpecificationLocation();
        Locale locale = component.getPage().getLocale();

        // Check to see if already in the cache

        MultiKey key = buildKey(specificationLocation, locale);

        Properties result = (Properties) _cache.get(key);

        if (result != null)
            return result;
View Full Code Here

TOP

Related Classes of org.apache.tapestry.util.MultiKey

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.