@Override public List<TypeListenerBinding> getTypeListenerBindings() { List<TypeListenerBinding> parentBindings = parent.getTypeListenerBindings(); List<TypeListenerBinding> result = Lists.newArrayListWithCapacity(parentBindings.size() + typeListenerBindings.size()); result.addAll(parentBindings); result.addAll(typeListenerBindings); return result; }
public Errors errorNotifyingTypeListener( TypeListenerBinding listener, TypeLiteral<?> type, Throwable cause) { return errorInUserCode( cause, "Error notifying TypeListener %s (bound at %s) of %s.%n Reason: %s", listener.getListener(), convert(listener.getSource()), type, cause); }
public List<TypeListenerBinding> getTypeListenerBindings() { List<TypeListenerBinding> parentBindings = parent.getTypeListenerBindings(); List<TypeListenerBinding> result = new ArrayList<TypeListenerBinding>(parentBindings.size() + 1); result.addAll(parentBindings); result.addAll(typeListenerBindings); return result; }
public Errors errorNotifyingTypeListener(TypeListenerBinding listener, TypeLiteral<?> type, Throwable cause) { return errorInUserCode(cause, "Error notifying TypeListener %s (bound at %s) of %s.%n" + " Reason: %s", listener.getListener(), convert(listener.getSource()), type, cause); }
@Override public V visit(TypeListenerBinding binding) { return message(binding, "Binding type listener " + binding.getListener() + " for types matching " + binding.getTypeMatcher()); }
@Override public void addTypeListener(TypeListenerBinding listenerBinding) { typeListenerBindings.add(listenerBinding); }
@Override public Boolean visit(TypeListenerBinding binding) { injector.state.addTypeListener(binding); return true; }
@Override public void addTypeListener(TypeListenerBinding typeListenerBinding) { throw new UnsupportedOperationException(); }
@Override public List<TypeListenerBinding> getTypeListenerBindings() { return ImmutableList.of(); }
MembersInjectorStore(InjectorImpl injector, List<TypeListenerBinding> typeListenerBindings) { this.injector = injector; this.typeListenerBindings = ImmutableList.copyOf(typeListenerBindings); }
public void addTypeListener(TypeListenerBinding listenerBinding) { typeListenerBindings.add(listenerBinding); }
public void addTypeListener(TypeListenerBinding typeListenerBinding) { throw new UnsupportedOperationException(); }
public List<TypeListenerBinding> getTypeListenerBindings() { return ImmutableList.of(); }
void addTypeListener(TypeListenerBinding typeListenerBinding);
List<TypeListenerBinding> getTypeListenerBindings();