Class LocatorWiring

  • All Implemented Interfaces:
    Wiring

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

      Constructors 
      Constructor Description
      LocatorWiring​(com.google.inject.Binder binder)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean wire​(com.google.inject.Key<?> key)
      Attempts to satisfy the given dependency by applying a local binding.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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