Skip to content

Commit

Permalink
change behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
ngocnhan-tran1996 committed Sep 14, 2024
1 parent 5db0ee2 commit 52980df
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
* @author Gary Russell
* @author Artem Bilan
* @author Christian Tzolov
* @author Ngoc Nhan
*/
@ManagedResource(description = "Admin Tasks")
public class RabbitAdmin implements AmqpAdmin, ApplicationContextAware, ApplicationEventPublisherAware,
Expand Down Expand Up @@ -648,8 +649,14 @@ public void afterPropertiesSet() {
@Override // NOSONAR complexity
public void initialize() {

redeclareBeanDeclarables();
redeclareManualDeclarables();
}

/**
* Process bean declarables.
*/
private void redeclareBeanDeclarables() {
if (this.applicationContext == null) {
this.logger.debug("no ApplicationContext has been set, cannot auto-declare Exchanges, Queues, and Bindings");
return;
Expand Down

0 comments on commit 52980df

Please sign in to comment.