Prevent class loading issue when integration not available

This commit is contained in:
Dave Syer
2014-06-27 10:36:17 +01:00
parent 7b170c1e5c
commit 9bf40dcc3e

View File

@@ -84,7 +84,7 @@ public class RestartEndpoint extends AbstractEndpoint<Boolean> implements
this.timeout = timeout;
}
public void setIntegrationMBeanExporter(IntegrationMBeanExporter exporter) {
public void setIntegrationMBeanExporter(Object exporter) {
if (exporter != null) {
this.integrationShutdown = new IntegrationShutdown(exporter);
}
@@ -201,8 +201,8 @@ public class RestartEndpoint extends AbstractEndpoint<Boolean> implements
private IntegrationMBeanExporter exporter;
public IntegrationShutdown(IntegrationMBeanExporter exporter) {
this.exporter = exporter;
public IntegrationShutdown(Object exporter) {
this.exporter = (IntegrationMBeanExporter) exporter;
}
public void stop(boolean force, long timeout) {