Package fr.gouv.vitam.worker.server.registration

# Class WorkerRegistrationListener

java.lang.Object
fr.gouv.vitam.worker.server.registration.WorkerRegistrationListener

All Implemented Interfaces:
  `jakarta.servlet.ServletContextListener`, `EventListener`

public class WorkerRegistrationListener extends Object implements jakarta.servlet.ServletContextListener
Listener used for registration between the current worker and the processing server

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `WorkerRegistrationListener(WorkerConfiguration configuration)`
  `WorkerRegistrationListener(WorkerConfiguration configuration, ProcessingManagementClientFactory processingManagementClientFactory)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `contextDestroyed(jakarta.servlet.ServletContextEvent sce)`
  `void`
  `contextInitialized(jakarta.servlet.ServletContextEvent sce)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### WorkerRegistrationListener

    public WorkerRegistrationListener(WorkerConfiguration configuration)

  - ### WorkerRegistrationListener

    public WorkerRegistrationListener(WorkerConfiguration configuration, ProcessingManagementClientFactory processingManagementClientFactory)

- ## Method Details

  - ### contextInitialized

    public void contextInitialized(jakarta.servlet.ServletContextEvent sce)
    Specified by:
      `contextInitialized` in interface `jakarta.servlet.ServletContextListener`

  - ### contextDestroyed

    public void contextDestroyed(jakarta.servlet.ServletContextEvent sce)
    Specified by:
      `contextDestroyed` in interface `jakarta.servlet.ServletContextListener`