Class LocatorWiring

  • All Implemented Interfaces:
    Wiring

    public final class LocatorWiring
    extends Object
    implements Wiring
    Adds BeanLocator-backed bindings for unresolved bean dependencies.
    • Constructor Detail

      • LocatorWiring

        public LocatorWiring​(com.google.inject.Binder binder)
    • Method Detail

      • wire

        public boolean wire​(com.google.inject.Key<?> key)
        Description copied from interface: Wiring
        Attempts to satisfy the given dependency by applying a local binding.
        Specified by:
        wire in interface Wiring
        Parameters:
        key - The dependency key
        Returns:
        true if the wiring succeeded; otherwise false