|
|
@ -199,7 +199,7 @@ public class Application extends SpringBootServletInitializer implements Embedde |
|
|
|
if(tomcatESCF.isInstance(container)) { |
|
|
|
if(tomcatESCF.isInstance(container)) { |
|
|
|
LOG.debug("Attempting to optimize tomcat"); |
|
|
|
LOG.debug("Attempting to optimize tomcat"); |
|
|
|
Object tomcatESCFInstance = tomcatESCF.cast(container); |
|
|
|
Object tomcatESCFInstance = tomcatESCF.cast(container); |
|
|
|
Class<?> tomcatApplicationClass = Class.forName("TomcatApplication"); |
|
|
|
Class<?> tomcatApplicationClass = Class.forName("org.airsonic.player.TomcatApplication"); |
|
|
|
Method configure = ReflectionUtils.findMethod(tomcatApplicationClass, "configure", tomcatESCF); |
|
|
|
Method configure = ReflectionUtils.findMethod(tomcatApplicationClass, "configure", tomcatESCF); |
|
|
|
configure.invoke(null, tomcatESCFInstance); |
|
|
|
configure.invoke(null, tomcatESCFInstance); |
|
|
|
LOG.debug("Tomcat optimizations complete"); |
|
|
|
LOG.debug("Tomcat optimizations complete"); |
|
|
|