public class SimpleMessageSourceMetrics extends Object implements org.aopalliance.intercept.MethodInterceptor, MessageSourceMetrics
Constructor and Description |
---|
SimpleMessageSourceMetrics(MessageSource<?> messageSource) |
Modifier and Type | Method and Description |
---|---|
int |
getMessageCount() |
MessageSource<?> |
getMessageSource() |
String |
getName() |
String |
getSource() |
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
void |
reset() |
void |
setName(String name) |
void |
setSource(String source) |
String |
toString() |
public SimpleMessageSourceMetrics(MessageSource<?> messageSource)
public void setName(String name)
public String getName()
getName
in interface MessageSourceMetrics
public void setSource(String source)
public String getSource()
getSource
in interface MessageSourceMetrics
public MessageSource<?> getMessageSource()
public void reset()
reset
in interface MessageSourceMetrics
public int getMessageCount()
getMessageCount
in interface MessageSourceMetrics
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
invoke
in interface org.aopalliance.intercept.MethodInterceptor
Throwable