Package io.vertigo.core.resource
Interface ResourceManager
- All Superinterfaces:
Component,CoreComponent,Manager
- All Known Implementing Classes:
ResourceManagerImpl
Resource Managers for resource selection.
Resources are identified by a URL.
This URL can be
- relative to the application's classpath in the case of a Java application
- relative to the context of the WEB application
The resource can also be resolved ad-hoc by creating a specific resolution plugin.
Configuration files are to be considered as resources.
Example:
classpath:
/myproject/components/components-config.dtd
web:
/WEB-INF/components-config.xml
The implementation allows defining a list of several resource resolution plugins.
It is also possible to register specific @see ResourceResolverPlugin. (For example, to store resources in a database)
-
Method Summary
-
Method Details
-
resolve
Returns a URL from its 'string' representation.- Parameters:
resource- URL of the resource (string representation)- Returns:
- URL associated with the resource (NotNull)
-