Interface Initialization
-
- All Known Subinterfaces:
DummyHandledFileConverter<S>
,ProcessCheck
,UserAuthenticationListener
- All Known Implementing Classes:
AbstractCalendarSubscriptionService
,AbstractDataProcessCheck
,AbstractDummyHandledFileConverter
,AbstractFileProcessCheck
,AbstractProcessCheck
,AbstractPublicationSubscriptionService
,AbstractResourceSubscriptionService
,AbstractSilverpeasFileProcessor
,AbstractSubscriptionBeanService
,ActifyDocumentProcessScheduler
,AdminInitialize
,AttachmentUrlLinkProcessor
,CalendarInitialization
,CalendarIntegrityProcessor
,CalendarSubscriptionBeanService
,ChatInitialization
,ChatUserAuthenticationListener
,ComponentFileFilterProcessCheck
,DataStorageQuotaProcessCheck
,DateReminderScheduler
,DefaultResourceSubscriptionService
,DefaultSubscriptionBeanService
,DefaultWbeHostManager.WbeCacheCleanerJob
,DefaultWebPlugin
,DelayedNotificationSchedulerInitializer
,DeleteRemovedGroupsScheduler
,DeleteRemovedUsersScheduler
,DocumentTemplateResourceViewProvider
,FFmpegToolManager
,FileExistenceCheckingProcessor
,ICalendarEventSynchronization
,Im4javaManager
,ImageResizingProcessor
,IndexEngineInitialize
,IndexingLogger
,JsonPdfToolManager
,LDAPTasksInitialization
,OpenOfficeService
,PersistentQuartzScheduler
,PersonalComponentRegistry
,PublicationDateReminderProcess
,PublicationSubscriptionBeanService
,PublicationTemplateIntegrityProcessor
,QuartzScheduler
,RelativePathCheckingProcessor
,ResizedImageCacheCleaner
,ScheduledImport
,ScheduledReservedFile
,ScimConfigurator
,SessionManager
,SilverStatisticsManager
,SimpleDocumentDummyHandledFileConverter
,SimpleDocumentEmbedMediaViewProvider
,SocialNetworkJavascriptPluginInclusion
,SseLogger
,SwfToolManager
,TemporaryDataCleanerSchedulerInitializer
,ThumbnailDummyHandledFileConverter
,TikaInitialization
,TimeoutManagerImpl
,ToolRegistry
,VolatileQuartScheduler
,WAComponentRegistry
public interface Initialization
This is a markup interface. It qualifies the services that are dedicated to initialize some resources or some others services. The initialization services has to implement theInitialization#init()
method. TheInitialization#release()
method is optional and does nothing by default.- Author:
- mmoquillon
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default int
getPriority()
Gets the priority level of the execution ofinit()
method.void
init()
Initializes some resources required by the services or performs some initialization processes at Silverpeas startup.default void
release()
Releases the previously initialized resources at Silverpeas shutdown.
-
-
-
Method Detail
-
init
void init() throws Exception
Initializes some resources required by the services or performs some initialization processes at Silverpeas startup.- Throws:
Exception
- if an error occurs during the initialization process. In this case the Silverpeas startup fails.
-
getPriority
default int getPriority()
Gets the priority level of the execution ofinit()
method.The less is the value of the priority the more the priority is high.
- Returns:
- an integer priority.
-
release
default void release() throws Exception
Releases the previously initialized resources at Silverpeas shutdown. The implementation of this method is optional. By default it does nothing.- Throws:
Exception
- if an error occurs during the shutdown process. In this case, a log will be outputed and the shutdown goes one.
-
-