Package io.vertigo.core.impl.resource
Class ResourceManagerImpl
java.lang.Object
io.vertigo.core.impl.resource.ResourceManagerImpl
- All Implemented Interfaces:
Component,CoreComponent,Manager,ResourceManager
Standard implementation for the resourceManager.
The strategy to access resources is defined by plugins.
So, you can extend the capabilities and define your own plugin to be able to access your own resources wherever they are.
- Author:
- pchretien
-
Constructor Summary
ConstructorsConstructorDescriptionResourceManagerImpl(List<ResourceResolverPlugin> resourceResolverPlugins) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidDaemon for deleting old files.Returns a URL from its 'string' representation.
-
Constructor Details
-
ResourceManagerImpl
Constructor.- Parameters:
resourceResolverPlugins- List of plugins which resolve the resources.
-
-
Method Details
-
resolve
Returns a URL from its 'string' representation.- Specified by:
resolvein interfaceResourceManager- Parameters:
resource- URL of the resource (string representation)- Returns:
- URL associated with the resource (NotNull)
-
deleteOldFiles
public void deleteOldFiles()Daemon for deleting old files.
-