Class NewsletterListenersInitializer

java.lang.Object
fr.paris.lutece.plugins.newsletter.service.NewsletterListenersInitializer

@ApplicationScoped public class NewsletterListenersInitializer extends Object
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 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