Class PortletInvalider
java.lang.Object
fr.paris.lutece.plugins.document.service.publishing.PortletInvalider
PortletInvalider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitializedService(jakarta.servlet.ServletContext context) This method observes the initialization of theApplicationScopedcontext.voidonDocumentEvent(DocumentEvent event) Observe document events via CDIvoidonPublishingEvent(PublishingEvent event) Observe publishing events via CDIvoidvoidInvalidate portlet on publishing events
-
Constructor Details
-
PortletInvalider
public PortletInvalider()
-
-
Method Details
-
onPublishingEvent
Observe publishing events via CDI- Parameters:
event- The publishing event
-
onDocumentEvent
Observe document events via CDI- Parameters:
event- The document event- Throws:
DocumentException- if error occurs
-
processPublishingEvent
Invalidate portlet on publishing events- Parameters:
event- The event to process
-
processDocumentEvent
- Throws:
DocumentException
-
initializedService
public void initializedService(@Observes @Initialized(jakarta.enterprise.context.ApplicationScoped.class) jakarta.servlet.ServletContext context) This method observes the initialization of theApplicationScopedcontext. It ensures that this CDI beans are instantiated at the application startup.This method is triggered automatically by CDI when the
ApplicationScopedcontext is initialized, which typically occurs during the startup of the application server.- Parameters:
context- theServletContextthat is initialized. This parameter is observed and injected automatically by CDI when theApplicationScopedcontext is initialized.
-