Class 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 Detail

      • ResourceManagerImpl

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

      • resolve

        public URL resolve​(String resource)
        Retourne une URL à partir de sa représentation 'chaîne de caractères'
        Specified by:
        resolve in interface ResourceManager
        Parameters:
        resource - Url de la ressource(chaîne de caractères)
        Returns:
        URL associée à la ressource (Not Null)
      • deleteOldFiles

        public void deleteOldFiles()
        Daemon for deleting old files.