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
FieldsModifier and TypeFieldDescriptionstatic final intMaximum priority.static final intMinimum priority. -
Method Summary
Modifier and TypeMethodDescriptiondefault intGet the priority for the component.getResourceHandler(String source) Returns the correspondingResourceHandleror null if none.
ReturnedResourceHandlershould be thread safe.
-
Field Details
-
MIN_PRIORITY
Minimum priority.- See Also:
-
MAX_PRIORITY
Maximum priority.- See Also:
-
-
Method Details
-
getPriority
Description copied from interface:PrioritizableGet the priority for the component. On components usingPrioritizableinterface, each implementation define the order. In most cases, less is the number, more prior is the component.- Specified by:
getPriorityin interfacePrioritizable- Returns:
- the priority
-
getResourceHandler
Returns the correspondingResourceHandleror null if none.
ReturnedResourceHandlershould 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.
-