Package org.silverpeas.core.io.file
Class AbstractSilverpeasFileProcessor
- java.lang.Object
-
- org.silverpeas.core.io.file.AbstractSilverpeasFileProcessor
-
- All Implemented Interfaces:
Comparable<SilverpeasFileProcessor>,Initialization,SilverpeasFileProcessor
- Direct Known Subclasses:
AttachmentUrlLinkProcessor,FileExistenceCheckingProcessor,ImageResizingProcessor,RelativePathCheckingProcessor
public abstract class AbstractSilverpeasFileProcessor extends Object implements SilverpeasFileProcessor, Initialization
- Author:
- Yohann Chastagnier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.silverpeas.core.io.file.SilverpeasFileProcessor
SilverpeasFileProcessor.ProcessingContext
-
-
Field Summary
-
Fields inherited from interface org.silverpeas.core.io.file.SilverpeasFileProcessor
MAX_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description AbstractSilverpeasFileProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SilverpeasFileProcessor o)intgetPriority()Gets the priority that permits to sort the processor list to execute.
The more the value of the priority is high, the more the processor is executed first.
The chained execution of processors that have the same priority could be known.
By default, the priority is set to 50.voidinit()Registers itself among the SilverpeasFileFactory instance.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.initialization.Initialization
release
-
Methods inherited from interface org.silverpeas.core.io.file.SilverpeasFileProcessor
processAfter, processBefore
-
-
-
-
Method Detail
-
init
public void init()
Registers itself among the SilverpeasFileFactory instance. If overridden, don't forget to invoke beforesuper.init()otherwise you wont encounter the expected behaviour.- Specified by:
initin interfaceInitialization
-
getPriority
public int getPriority()
Description copied from interface:SilverpeasFileProcessorGets the priority that permits to sort the processor list to execute.
The more the value of the priority is high, the more the processor is executed first.
The chained execution of processors that have the same priority could be known.
By default, the priority is set to 50.- Specified by:
getPriorityin interfaceInitialization- Specified by:
getPriorityin interfaceSilverpeasFileProcessor- Returns:
- the priority value.
-
compareTo
public int compareTo(SilverpeasFileProcessor o)
- Specified by:
compareToin interfaceComparable<SilverpeasFileProcessor>
-
-