Skip to content

Commit

Permalink
Pull up setDisableMBeanRegistry to ConfigurableTomcatWebServerFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
panic08 committed Feb 4, 2025
1 parent 3b8148e commit 411a1f3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ public interface ConfigurableTomcatWebServerFactory extends ConfigurableWebServe
*/
void setBackgroundProcessorDelay(int delay);

/**
* Set whether the factory should disable Tomcat's MBean registry prior to creating
* the server.
* @param disableMBeanRegistry whether to disable the MBean registry
*/
void setDisableMBeanRegistry(boolean disableMBeanRegistry);

/**
* Add {@link Valve}s that should be applied to the Tomcat {@link Engine}.
* @param engineValves the valves to add
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,11 @@ public void setBackgroundProcessorDelay(int delay) {
this.backgroundProcessorDelay = delay;
}

@Override
public void setDisableMBeanRegistry(boolean disableMBeanRegistry) {
this.disableMBeanRegistry = disableMBeanRegistry;
}

/**
* Set {@link TomcatContextCustomizer}s that should be applied to the Tomcat
* {@link Context}. Calling this method will replace any existing customizers.
Expand Down Expand Up @@ -462,14 +467,4 @@ public void setProtocol(String protocol) {
this.protocol = protocol;
}

/**
* Set whether the factory should disable Tomcat's MBean registry prior to creating
* the server.
* @param disableMBeanRegistry whether to disable the MBean registry
* @since 2.2.0
*/
public void setDisableMBeanRegistry(boolean disableMBeanRegistry) {
this.disableMBeanRegistry = disableMBeanRegistry;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -770,12 +770,7 @@ public void setBackgroundProcessorDelay(int delay) {
this.backgroundProcessorDelay = delay;
}

/**
* Set whether the factory should disable Tomcat's MBean registry prior to creating
* the server.
* @param disableMBeanRegistry whether to disable the MBean registry
* @since 2.2.0
*/
@Override
public void setDisableMBeanRegistry(boolean disableMBeanRegistry) {
this.disableMBeanRegistry = disableMBeanRegistry;
}
Expand Down

0 comments on commit 411a1f3

Please sign in to comment.