Class WireModule

  • All Implemented Interfaces:
    com.google.inject.Module

    public final class WireModule
    extends java.lang.Object
    implements com.google.inject.Module
    Guice Module that automatically adds BeanLocator-backed bindings for unresolved dependencies.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  WireModule.Strategy
      Wiring strategy.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static com.google.inject.Module[] CONVERTERS  
      private java.lang.Iterable<com.google.inject.Module> modules  
      private WireModule.Strategy strategy  
    • Constructor Summary

      Constructors 
      Constructor Description
      WireModule​(com.google.inject.Module... modules)  
      WireModule​(java.lang.Iterable<com.google.inject.Module> modules)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configure​(com.google.inject.Binder binder)  
      com.google.inject.Module with​(WireModule.Strategy _strategy)
      Applies a new wiring WireModule.Strategy to the current module.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CONVERTERS

        static final com.google.inject.Module[] CONVERTERS
      • modules

        private final java.lang.Iterable<com.google.inject.Module> modules
    • Constructor Detail

      • WireModule

        public WireModule​(com.google.inject.Module... modules)
      • WireModule

        public WireModule​(java.lang.Iterable<com.google.inject.Module> modules)
    • Method Detail

      • with

        public com.google.inject.Module with​(WireModule.Strategy _strategy)
        Applies a new wiring WireModule.Strategy to the current module.
        Parameters:
        _strategy - The new strategy
        Returns:
        Updated module
      • configure

        public void configure​(com.google.inject.Binder binder)
        Specified by:
        configure in interface com.google.inject.Module