From 2d72c278f9c72408b9b03c459fdce26c338c586c Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Thu, 14 Jul 2011 13:59:48 -0400 Subject: [PATCH] polishing --- .../integration/handler/DelayHandler.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/spring-integration-core/src/main/java/org/springframework/integration/handler/DelayHandler.java b/spring-integration-core/src/main/java/org/springframework/integration/handler/DelayHandler.java index 92a9096728..9889f5d649 100644 --- a/spring-integration-core/src/main/java/org/springframework/integration/handler/DelayHandler.java +++ b/spring-integration-core/src/main/java/org/springframework/integration/handler/DelayHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2010 the original author or authors. + * Copyright 2002-2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -92,10 +92,6 @@ public class DelayHandler extends IntegrationObjectSupport implements MessageHan private volatile int order = Ordered.LOWEST_PRECEDENCE; - @Override - public String getComponentType() { - return "delayer"; - } /** * Create a DelayHandler with the given default delay. The sending of Messages after * the delay will be handled by a scheduled thread pool with a size of 1. @@ -177,6 +173,11 @@ public class DelayHandler extends IntegrationObjectSupport implements MessageHan return this.order; } + @Override + public String getComponentType() { + return "delayer"; + } + protected void onInit() throws Exception{ if (this.getTaskScheduler() instanceof ExecutorConfigurationSupport) { ((ExecutorConfigurationSupport) this.getTaskScheduler()).setWaitForTasksToCompleteOnShutdown(this.waitForTasksToCompleteOnShutdown);