Package org.ametys.core.resources
Class AbstractResourceHandlerProvider
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.resources.AbstractResourceHandlerProvider
- All Implemented Interfaces:
ResourceHandlerProvider
,LogEnabled
,Contextualizable
,Serviceable
- Direct Known Subclasses:
AbstractSimpleResourceHandlerProvider
,CompiledCssResourceHandlerProvider
,SassSourceMapResourceHandlerProvider
,VueJsResourceHandlerProvider
public abstract class AbstractResourceHandlerProvider
extends AbstractLogEnabled
implements ResourceHandlerProvider, Serviceable, Contextualizable
Abstract superclass for
ResourceHandlerProvider
for helping ResourceHandler
creation.-
Field Summary
Modifier and TypeFieldDescriptionprotected Context
The application contextprotected ServiceManager
The service managerFields inherited from interface org.ametys.core.resources.ResourceHandlerProvider
MAX_PRIORITY, MIN_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) void
service
(ServiceManager manager) protected ResourceHandler
setup
(ResourceHandler handler) Setup the handler right after its creationMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.core.resources.ResourceHandlerProvider
getPriority, getResourceHandler
-
Field Details
-
_context
The application context -
_manager
The service manager
-
-
Constructor Details
-
AbstractResourceHandlerProvider
public AbstractResourceHandlerProvider()
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
setup
Setup the handler right after its creation- Parameters:
handler
- the handler.- Returns:
- the initialized
ResourceHandler
. - Throws:
Exception
- if something goes wrong during initialization
-