/** * Wires all {@link Action} bindings in the passed context. * Called by {@link Bindings#createBindings(BindingContext)} as part of runtime wiring * process. * * @param context */ public Collection<Binding> wire(BindingContext context) { List<Field> actions = context.getAnnotatedFields(Action.class); for (Field field : actions) { Action action = field.getAnnotation(Action.class); String call = action.call(); try { wire(call, field, context); } catch (Exception e) { throw new BindingException("could not wire up @Action on " + field.getName(), e); } } return ImmutableList.of(); }