Package org.ametys.core.resources
Interface ResourceHandlerProvider
- All Superinterfaces:
Prioritizable
- All Known Implementing Classes:
AbstractResourceHandlerProvider
,AbstractSimpleResourceHandlerProvider
,CompiledCssResourceHandlerProvider
,CssResourceHandlerProvider
,CSSSourceMapResourceHandlerProvider
,ImageResourceHandlerProvider
,JSResourceHandlerProvider
,JSSourceMapResourceHandlerProvider
,MinimizedCSSResourceHandlerProvider
,MinimizedJSResourceHandlerProvider
,PdfCoverResourceHandlerProvider
,SassSourceMapResourceHandlerProvider
,UncompiledSassResourceHandlerProvider
,VueJsResourceHandlerProvider
Provides a
ResourceHandler
able to process a Source
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Maximum priority.static final int
Minimum priority. -
Method Summary
Modifier and TypeMethodDescriptiondefault int
Get the priority for the component.getResourceHandler
(String source) Returns the correspondingResourceHandler
or null if none.
ReturnedResourceHandler
should be thread safe.
-
Field Details
-
MIN_PRIORITY
Minimum priority.- See Also:
-
MAX_PRIORITY
Maximum priority.- See Also:
-
-
Method Details
-
getPriority
Description copied from interface:Prioritizable
Get the priority for the component. On components usingPrioritizable
interface, each implementation define the order. In most cases, less is the number, more prior is the component.- Specified by:
getPriority
in interfacePrioritizable
- Returns:
- the priority
-
getResourceHandler
Returns the correspondingResourceHandler
or null if none.
ReturnedResourceHandler
should be thread safe.- Parameters:
source
- the requested resource.- Returns:
- a ResourceHandler able to process the resource.
- Throws:
Exception
- if an error occurs during ResourceHandler creation.
-