Class AbstractSiteGetter
- java.lang.Object
-
- org.ametys.web.content.sitegetter.AbstractSiteGetter
-
- All Implemented Interfaces:
Prioritizable
,SiteGetter
,Configurable
- Direct Known Subclasses:
ODFWebSiteGetter
,WebSiteGetter
public abstract class AbstractSiteGetter extends Object implements SiteGetter, Configurable
Abstract implementation for site getter. It manages the priority into the configuration.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
_priority
The priority of the extension point implementation, default value is 50 if the priority configuration is missing
-
Constructor Summary
Constructors Constructor Description AbstractSiteGetter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Configuration configuration)
int
getPriority()
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 Detail
-
_priority
protected int _priority
The priority of the extension point implementation, default value is 50 if the priority configuration is missing
-
-
Constructor Detail
-
AbstractSiteGetter
public AbstractSiteGetter()
-
-
Method Detail
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getPriority
public int 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
-
-