Package org.apache.hivemind.internal

Examples of org.apache.hivemind.internal.MessageFinder


            ThreadLocale threadLocale = (ThreadLocale) _registry.getService(
                    HiveMind.THREAD_LOCALE_SERVICE,
                    ThreadLocale.class,
                    this);

            MessageFinder finder = new MessageFinderImpl(getLocation().getResource());

            _messages = new ModuleMessages(finder, threadLocale);
        }

        return _messages;
View Full Code Here


        return new MessageFinderImpl(r);
    }

    public void testLocaleOverridesBase()
    {
        MessageFinder mf = newFinder();

        assertEquals("MessageFinder_fr.overriden-in-base", mf.getMessage(
                "overridden-in-base",
                Locale.FRENCH));

        // FRANCE is more detailed than FRENCH
        // Also, there is no MessageFinder_fr_FR.properties file,
        // and that's ok.

        assertEquals("MessageFinder_fr.overriden-in-base", mf.getMessage(
                "overridden-in-base",
                Locale.FRANCE));
    }
View Full Code Here

                Locale.FRANCE));
    }

    public void testLocaleDoeNotObscureBase()
    {
        MessageFinder mf = newFinder();

        assertEquals("MessageFinder.only-in-properties", mf.getMessage(
                "only-in-base",
                Locale.FRENCH));
    }
View Full Code Here

TOP

Related Classes of org.apache.hivemind.internal.MessageFinder

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.