Interface WebResourceManager

All Superinterfaces:
TimestampedService
All Known Implementing Classes:
WebResourceManagerImpl

public interface WebResourceManager extends TimestampedService
Service for web resources retrieval.
Since:
7.3
  • Method Details

    • getResource

      Resource getResource(String name)
      Returns a registered resource with given name, or null if not found.

      Referenced resource can either be a static resource or a style.

    • getResourceBundle

      ResourceBundle getResourceBundle(String name)
      Returns a registered resource bundle with given name, or null if not found.
    • getResourceBundles

      List<ResourceBundle> getResourceBundles()
      Returns all resource bundles registered on the service.
    • getProcessor

      Processor getProcessor(String name)
      Returns the corresponding processor with given name, or null if not found.
    • getProcessors

      List<Processor> getProcessors()
      Returns all processors registered on the service, ordered.
    • getProcessors

      List<Processor> getProcessors(String type)
      Returns all processors registered on the service, ordered, for given type.
    • getResources

      List<Resource> getResources(ResourceContext context, String bundleName, String type)
      Returns the ordered list of resources for given bundle name, filtered using given type.

    • registerResourceBundle

      void registerResourceBundle(ResourceBundle bundle)
      Allows to dynamically register a bundle.
      Since:
      7.4
    • unregisterResourceBundle

      void unregisterResourceBundle(ResourceBundle bundle)
      Allows to dynamically unregister a bundle.
      Since:
      7.4
    • registerResource

      void registerResource(Resource resource)
      Allows to dynamically register a resource.
      Since:
      7.4
    • unregisterResource

      void unregisterResource(Resource resource)
      Allows to dynamically unregister a resource.
      Since:
      7.4