Class NewsletterListenersInitializer
java.lang.Object
fr.paris.lutece.plugins.newsletter.service.NewsletterListenersInitializer
Registers the plugin's workgroup removal listeners against the core workgroup
removal service when the CDI container starts. Replaces the legacy static
init( ) methods of NewsLetter and NewsLetterTemplate.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonStartup(jakarta.servlet.ServletContext context) Registers the newsletter and newsletter-template workgroup removal listeners when the application-scoped context is initialized.
-
Constructor Details
-
NewsletterListenersInitializer
public NewsletterListenersInitializer()
-
-
Method Details
-
onStartup
public void onStartup(@Observes @Initialized(jakarta.enterprise.context.ApplicationScoped.class) jakarta.servlet.ServletContext context) Registers the newsletter and newsletter-template workgroup removal listeners when the application-scoped context is initialized.- Parameters:
context- the servlet context
-