Interface ResourceLoader
-
public interface ResourceLoaderThis interface provides an abstract layer for an application to load its resources.
Ressources can be loaded from a database, a properties file or any other way.- Since:
- v1.4.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourcegetResource(java.lang.String strId)Load a resource by its Idjava.util.CollectiongetResources()Load all resources available for this loader
-
-
-
Method Detail
-
getResources
java.util.Collection getResources()
Load all resources available for this loader- Returns:
- A collection of resources
-
getResource
Resource getResource(java.lang.String strId)
Load a resource by its Id- Parameters:
strId- The Id of the resource- Returns:
- The resource
-
-