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,Prioritizable,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
FieldsModifier and TypeFieldDescriptionprotected ContextThe application contextprotected ServiceManagerThe service managerFields inherited from interface org.ametys.core.resources.ResourceHandlerProvider
MAX_PRIORITY, MIN_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextualize(Context context) voidservice(ServiceManager manager) protected ResourceHandlersetup(ResourceHandler handler) Setup the handler right after its creationMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
contextualizein interfaceContextualizable- Throws:
ContextException
-
service
- Specified by:
servicein 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
-