Class QueryListenersService

java.lang.Object
fr.paris.lutece.portal.service.search.QueryListenersService

@Deprecated(forRemoval=true, since="8.0") @ApplicationScoped public class QueryListenersService extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Use CDI events and @Observes pattern instead. This class will be removed in future versions.
QueryListenersService
  • Method Details

    • getInstance

      @Deprecated(since="8.0", forRemoval=true) public static QueryListenersService getInstance()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use @Inject to obtain the QueryListenersService instance. This method will be removed in future versions.
      Returns the unique instance of the QueryListenersService service.

      This method is deprecated and is provided for backward compatibility only. For new code, use dependency injection with @Inject to obtain the QueryListenersService instance instead.

      Returns:
      The unique instance of QueryListenersService.
    • registerQueryListener

      @Deprecated(since="8.0", forRemoval=true) public void registerQueryListener(QueryEventListener listener)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use CDI events and @Observes pattern instead. This method will be removed in future versions.
      Register a new listener
      Parameters:
      listener - The listener to register
    • notifyListeners

      @Deprecated(since="8.0", forRemoval=true) public void notifyListeners(QueryEvent event)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use CDI events to notify others. This method will be removed in future versions.
      Notify all registered listeners
      Parameters:
      event - The query event to notify