/** * Attaches the given listeners (and their topics) to the container. * <p> * Note: it's possible to call this method while the container is running forcing a reinitialization of the container. * Note however that this might cause some messages to be lost (while the container reinitializes) - hence calling * this method at runtime is considered advanced usage. * * @param listeners map of message listeners and their associated topics */ public void setMessageListeners(Map<? extends MessageListener, Collection<? extends Topic>> listeners) { initMapping(listeners); }
/** * Attaches the given listeners (and their topics) to the container. * <p> * Note: it's possible to call this method while the container is running forcing a reinitialization of the container. * Note however that this might cause some messages to be lost (while the container reinitializes) - hence calling * this method at runtime is considered advanced usage. * * @param listeners map of message listeners and their associated topics */ public void setMessageListeners(Map<? extends MessageListener, Collection<? extends Topic>> listeners) { initMapping(listeners); }
/** * Attaches the given listeners (and their topics) to the container. * <p> * Note: it's possible to call this method while the container is running forcing a reinitialization of the container. * Note however that this might cause some messages to be lost (while the container reinitializes) - hence calling * this method at runtime is considered advanced usage. * * @param listeners map of message listeners and their associated topics */ public void setMessageListeners(Map<? extends MessageListener, Collection<? extends Topic>> listeners) { initMapping(listeners); }