Package net.sf.jguiraffe.resources
Interface ResourceLoader
-
- All Known Implementing Classes:
BundleResourceLoader
public interface ResourceLoaderDefinition of an interface for objects that are able to load resource groups.
A
ResourceLoaderis responsible for retrievingResourceGroupobjects from a specific source. There will be different implementations for different resource sources like resource bundles, database tables, etc.This interface defines only a single method that must somehow retrieve a resource group for a given
Localespecified by a name. If this fails, an exception will be thrown.- Version:
- $Id: ResourceLoader.java 205 2012-01-29 18:29:57Z oheger $
- Author:
- Oliver Heger
- See Also:
ResourceGroup
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceGrouploadGroup(Locale locale, Object name)Performs all necessary steps to retrieve the specified resource group.
-
-
-
Method Detail
-
loadGroup
ResourceGroup loadGroup(Locale locale, Object name) throws MissingResourceException
Performs all necessary steps to retrieve the specified resource group. This method will be called by aResourceManagerwhenever resource entries or groups are accessed.- Parameters:
locale- theLocalename- the name of the searched resource group- Returns:
- the resource group
- Throws:
MissingResourceException- if this group cannot be retrieved
-
-