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
FieldsModifier and TypeFieldDescriptionprotected intThe priority of the extension point implementation, default value is 50 if the priority configuration is missing -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Configuration configuration) intGet the priority for the component.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
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
-