Class ResourceManagerImpl

java.lang.Object
io.vertigo.core.impl.resource.ResourceManagerImpl
All Implemented Interfaces:
Component, CoreComponent, Manager, ResourceManager

public final class ResourceManagerImpl extends Object implements 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 Details

    • ResourceManagerImpl

      @Inject public ResourceManagerImpl(List<ResourceResolverPlugin> resourceResolverPlugins)
      Constructor.
      Parameters:
      resourceResolverPlugins - List of plugins which resolve the resources.
  • Method Details

    • resolve

      public URL resolve(String resource)
      Returns a URL from its 'string' representation.
      Specified by:
      resolve in interface ResourceManager
      Parameters:
      resource - URL of the resource (string representation)
      Returns:
      URL associated with the resource (NotNull)
    • deleteOldFiles

      public void deleteOldFiles()
      Daemon for deleting old files.