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 Summary
Modifier and TypeMethodDescriptionstatic QueryListenersServiceDeprecated, for removal: This API element is subject to removal in a future version.Use@Injectto obtain theQueryListenersServiceinstance.voidnotifyListeners(QueryEvent event) Deprecated, for removal: This API element is subject to removal in a future version.Use CDI events to notify others.voidregisterQueryListener(QueryEventListener listener) Deprecated, for removal: This API element is subject to removal in a future version.Use CDI events and @Observes pattern instead.
-
Method Details
-
getInstance
Deprecated, for removal: This API element is subject to removal in a future version.Use@Injectto obtain theQueryListenersServiceinstance. This method will be removed in future versions.Returns the unique instance of theQueryListenersServiceservice.This method is deprecated and is provided for backward compatibility only. For new code, use dependency injection with
@Injectto obtain theQueryListenersServiceinstance 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, 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
-