INT-1675: work a bit harder to expose existing handlers if they are @ManagedResources

This commit is contained in:
Dave Syer
2010-12-11 08:48:43 +00:00
parent e23e478e9e
commit b528abcf68
17 changed files with 429 additions and 41 deletions

View File

@@ -66,7 +66,7 @@ public class LoggingHandler extends AbstractMessageHandler {
this.evaluationContext = evaluationContext;
this.expression = EXPRESSION_PARSER.parseExpression("payload");
}
public void setExpression(String expressionString) {
this.expression = EXPRESSION_PARSER.parseExpression(expressionString);
}

View File

@@ -17,13 +17,17 @@
package org.springframework.integration.history;
import org.springframework.integration.context.NamedComponent;
import org.springframework.jmx.export.annotation.ManagedOperation;
import org.springframework.jmx.export.annotation.ManagedResource;
/**
* @author Mark Fisher
* @since 2.0
*/
@ManagedResource
public interface TrackableComponent extends NamedComponent {
@ManagedOperation
void setShouldTrack(boolean shouldTrack);
}

View File

@@ -32,5 +32,5 @@ public class ExpressionEvaluatingRouter extends AbstractMessageProcessingRouter
public ExpressionEvaluatingRouter(Expression expression) {
super(new ExpressionEvaluatingMessageProcessor<Object>(expression));
}
}