INT-1675: work a bit harder to expose existing handlers if they are @ManagedResources
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
@@ -32,5 +32,5 @@ public class ExpressionEvaluatingRouter extends AbstractMessageProcessingRouter
|
||||
public ExpressionEvaluatingRouter(Expression expression) {
|
||||
super(new ExpressionEvaluatingMessageProcessor<Object>(expression));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user