public void consumerInjection(Method method, Object bean, String beanName) {
Consume consume = method.getAnnotation(Consume.class);
if (consume != null && matchContext(consume.context())) {
LOG.info("Creating a consumer for: " + consume);
subscribeMethod(method, bean, beanName, consume.uri(), consume.ref());
}
}
public void subscribeMethod(Method method, Object bean, String beanName, String endpointUri, String endpointName) {
// lets bind this method to a listener