Package net.sf.jguiraffe.resources
Schnittstelle ResourceLoader
- Alle bekannten Implementierungsklassen:
BundleResourceLoader
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.
- Version:
- $Id: ResourceLoader.java 205 2012-01-29 18:29:57Z oheger $
- Autor:
- Oliver Heger
- Siehe auch:
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungPerforms all necessary steps to retrieve the specified resource group.
-
Methodendetails
-
loadGroup
Performs all necessary steps to retrieve the specified resource group. This method will be called by aResourceManager
whenever resource entries or groups are accessed.- Parameter:
locale
- theLocale
name
- the name of the searched resource group- Gibt zurück:
- the resource group
- Löst aus:
MissingResourceException
- if this group cannot be retrieved
-