public class MessageCounterHandler
extends java.lang.Object
CounterRepository
.Modifier and Type | Field and Description |
---|---|
protected org.springframework.expression.EvaluationContext |
evaluationContext |
protected org.springframework.expression.Expression |
nameExpression |
protected org.springframework.expression.spel.standard.SpelExpressionParser |
spelExpressionParser |
Constructor and Description |
---|
MessageCounterHandler(CounterRepository counterRepository,
java.lang.String nameExpression) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected java.lang.String |
computeMetricName(org.springframework.messaging.Message<?> message) |
org.springframework.messaging.Message<?> |
process(org.springframework.messaging.Message<?> message) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setIntegrationEvaluationContext(org.springframework.expression.EvaluationContext evaluationContext) |
protected final org.springframework.expression.Expression nameExpression
protected final org.springframework.expression.spel.standard.SpelExpressionParser spelExpressionParser
protected org.springframework.expression.EvaluationContext evaluationContext
public MessageCounterHandler(CounterRepository counterRepository, java.lang.String nameExpression)
@ServiceActivator public org.springframework.messaging.Message<?> process(org.springframework.messaging.Message<?> message)
protected java.lang.String computeMetricName(org.springframework.messaging.Message<?> message)
public void setIntegrationEvaluationContext(org.springframework.expression.EvaluationContext evaluationContext)
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception