Class AbstractSiteGetter
java.lang.Object
org.ametys.web.content.sitegetter.AbstractSiteGetter
- All Implemented Interfaces:
Prioritizable
,SiteGetter
,Configurable
- Direct Known Subclasses:
ODFWebSiteGetter
,WebSiteGetter
Abstract implementation for site getter.
It manages the priority into the configuration.
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
The priority of the extension point implementation, default value is 50 if the priority configuration is missing -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration configuration) int
Get the priority for the component.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.web.content.sitegetter.SiteGetter
getSite, supports
-
Field Details
-
_priority
The priority of the extension point implementation, default value is 50 if the priority configuration is missing
-
-
Constructor Details
-
AbstractSiteGetter
public AbstractSiteGetter()
-
-
Method Details
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getPriority
Description copied from interface:Prioritizable
Get the priority for the component. On components usingPrioritizable
interface, each implementation define the order. In most cases, less is the number, more prior is the component.- Specified by:
getPriority
in interfacePrioritizable
- Returns:
- the priority
-