org.apache.shindig.gadgets
Interface MessageBundleFactory

All Known Implementing Classes:
DefaultMessageBundleFactory

public interface MessageBundleFactory

Factory of message bundles


Method Summary
 MessageBundle getBundle(GadgetSpec spec, Locale locale, boolean ignoreCache, String container)
          Retrieves a messagMessageBundle for the provided GadgetSpec and Locale.
 

Method Detail

getBundle

MessageBundle getBundle(GadgetSpec spec,
                        Locale locale,
                        boolean ignoreCache,
                        String container)
                        throws GadgetException
Retrieves a messagMessageBundle for the provided GadgetSpec and Locale. Implementations must be sure to perform proper merging of message bundles of lower specifity with exact matches (exact > lang only > country only > all / all)

Parameters:
spec - The gadget to inspect for Locales.
locale - The language and country to get a message bundle for.
ignoreCache - True to bypass any caching of message bundles for debugging purposes.
container - The container that is requesting this message bundle
Returns:
The newly created MesageBundle.
Throws:
GadgetException - if retrieval fails for any reason.


Copyright © 2007-2012. All Rights Reserved.