Package org.ametys.core.resources
Class ResourceHandlerProviderExtensionPoint
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint<T>
org.ametys.runtime.plugin.component.AbstractThreadSafeComponentPrioritizableExtensionPoint<ResourceHandlerProvider>
org.ametys.core.resources.ResourceHandlerProviderExtensionPoint
- All Implemented Interfaces:
LogEnabled
,ExtensionPoint<ResourceHandlerProvider>
,Disposable
,Initializable
,Component
,Contextualizable
,Serviceable
,ThreadSafe
public class ResourceHandlerProviderExtensionPoint
extends AbstractThreadSafeComponentPrioritizableExtensionPoint<ResourceHandlerProvider>
Extension point for
ResourceHandlerProvider
.-
Field Summary
Fields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetResourceHandler
(String source) Get the extension of max priority matching the provided source, based on the registered suffixesprotected boolean
Define if the priority is ascending sorted or reversed, default implementation istrue
.Methods inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentPrioritizableExtensionPoint
getComparator, getExtensionsIds, initializeExtensions
Methods inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
addComponent, addExtension, contextualize, dispose, getExtension, hasExtension, initialize, service
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Avalon Role
-
-
Constructor Details
-
ResourceHandlerProviderExtensionPoint
-
-
Method Details
-
sortPriorityAscending
Description copied from class:AbstractThreadSafeComponentPrioritizableExtensionPoint
Define if the priority is ascending sorted or reversed, default implementation istrue
.- Overrides:
sortPriorityAscending
in classAbstractThreadSafeComponentPrioritizableExtensionPoint<ResourceHandlerProvider>
- Returns:
true
if the priority should be ascending.
-
getResourceHandler
Get the extension of max priority matching the provided source, based on the registered suffixes- Parameters:
source
- The source- Returns:
- The corresponding extension
- Throws:
Exception
- if an error occurs during ResourceHandler creation.
-