Class AbstractBindingProcessor

    • Field Detail

      • FORBIDDEN_TYPES

        private static final com.google.common.collect.ImmutableSet<java.lang.Class<?>> FORBIDDEN_TYPES
    • Method Detail

      • putBinding

        protected void putBinding​(BindingImpl<?> binding)
      • isOkayDuplicate

        private boolean isOkayDuplicate​(BindingImpl<?> original,
                                        BindingImpl<?> binding,
                                        State state)
        We tolerate duplicate bindings if one exposes the other or if the two bindings are considered duplicates (see Bindings#areDuplicates(BindingImpl, BindingImpl).
        Parameters:
        original - the binding in the parent injector (candidate for an exposing binding)
        binding - the binding to check (candidate for the exposed binding)
      • validateKey

        private <T> void validateKey​(java.lang.Object source,
                                     Key<T> key)