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
public interface ResourceHandlerProvider extends Prioritizable
Provides aResourceHandlerable to process aSource.
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_PRIORITYMaximum priority.static intMIN_PRIORITYMinimum priority.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default intgetPriority()Get the priority for the component.ResourceHandlergetResourceHandler(String source)Returns the correspondingResourceHandleror null if none.
ReturnedResourceHandlershould be thread safe.
-
-
-
Field Detail
-
MIN_PRIORITY
static final int MIN_PRIORITY
Minimum priority.- See Also:
- Constant Field Values
-
MAX_PRIORITY
static final int MAX_PRIORITY
Maximum priority.- See Also:
- Constant Field Values
-
-
Method Detail
-
getPriority
default int 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
ResourceHandler getResourceHandler(String source) throws Exception
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.
-
-