Class RestletGuice


  • public class RestletGuice
    extends java.lang.Object
    Guice dependency injection for Restlet.
    Author:
    Tim Peierls
    • Constructor Summary

      Constructors 
      Constructor Description
      RestletGuice()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.google.inject.Injector createInjector​(com.google.inject.Module... modules)
      Creates an instance of Injector from the given modules with FinderFactory bound to an implementation that uses the injector's bindings to create Finder instances.
      static com.google.inject.Injector createInjector​(com.google.inject.Stage stage, com.google.inject.Module... modules)
      Creates an instance of Injector in the given Stage from the given modules with FinderFactory bound to an implementation that uses the injector's bindings to create Finder instances.
      static com.google.inject.Injector createInjector​(com.google.inject.Stage stage, java.lang.Iterable<com.google.inject.Module> modules)
      Creates an instance of Injector in the given Stage from the given modules with FinderFactory bound to an implementation that uses the injector's bindings to create Finder instances.
      static com.google.inject.Injector createInjector​(java.lang.Iterable<com.google.inject.Module> modules)
      Creates an instance of Injector from the given modules with FinderFactory bound to an implementation that uses the injector's bindings to create Finder instances.
      • Methods inherited from class java.lang.Object

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

      • RestletGuice

        public RestletGuice()
    • Method Detail

      • createInjector

        public static com.google.inject.Injector createInjector​(com.google.inject.Module... modules)
        Creates an instance of Injector from the given modules with FinderFactory bound to an implementation that uses the injector's bindings to create Finder instances.
        Parameters:
        modules - The list of modules.
        Returns:
        The injector for the list of modules.
      • createInjector

        public static com.google.inject.Injector createInjector​(java.lang.Iterable<com.google.inject.Module> modules)
        Creates an instance of Injector from the given modules with FinderFactory bound to an implementation that uses the injector's bindings to create Finder instances.
        Parameters:
        modules - The collection of modules.
        Returns:
        The injector for the list of modules.
      • createInjector

        public static com.google.inject.Injector createInjector​(com.google.inject.Stage stage,
                                                                com.google.inject.Module... modules)
        Creates an instance of Injector in the given Stage from the given modules with FinderFactory bound to an implementation that uses the injector's bindings to create Finder instances.
        Parameters:
        stage - The Stage.
        modules - The list of modules.
        Returns:
        The injector for the list of modules in the given stage.
      • createInjector

        public static com.google.inject.Injector createInjector​(com.google.inject.Stage stage,
                                                                java.lang.Iterable<com.google.inject.Module> modules)
        Creates an instance of Injector in the given Stage from the given modules with FinderFactory bound to an implementation that uses the injector's bindings to create Finder instances.
        Parameters:
        stage - The Stage.
        modules - The list of modules.
        Returns:
        The injector for the list of modules in the given stage.