public interface ResourceLoader
Definition of an interface for objects that are able to load resource groups.
A ResourceLoader
is responsible for retrieving
ResourceGroup
objects 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 Locale
specified by a name. If this
fails, an exception will be thrown.
ResourceGroup
Modifier and Type | Method and Description |
---|---|
ResourceGroup |
loadGroup(Locale locale,
Object name)
Performs all necessary steps to retrieve the specified resource group.
|
ResourceGroup loadGroup(Locale locale, Object name) throws MissingResourceException
ResourceManager
whenever
resource entries or groups are accessed.locale
- the Locale
name
- the name of the searched resource groupMissingResourceException
- if this group cannot be retrievedCopyright © 2016 The JGUIraffe Team. All rights reserved.