Class GuiceRepository

  • All Implemented Interfaces:
    Iterable<com.google.inject.Module>

    public class GuiceRepository
    extends Object
    implements Iterable<com.google.inject.Module>
    This is a repository of Modules. An instance of this class is owned by the ContainerBuilder, and is used to configure the set of Modules that eventually form the Injector of the active Container.
    Author:
    Simon Thoresen Hult
    • Constructor Detail

      • GuiceRepository

        public GuiceRepository​(com.google.inject.Module... modules)
    • Method Detail

      • activate

        public com.google.inject.Injector activate()
      • installAll

        public void installAll​(Iterable<? extends com.google.inject.Module> modules)
      • install

        public void install​(com.google.inject.Module module)
      • uninstallAll

        public void uninstallAll​(Iterable<? extends com.google.inject.Module> modules)
      • uninstall

        public void uninstall​(com.google.inject.Module module)
      • getInjector

        public com.google.inject.Injector getInjector()
      • getInstance

        public <T> T getInstance​(com.google.inject.Key<T> key)
      • getInstance

        public <T> T getInstance​(Class<T> type)
      • collection

        public Collection<com.google.inject.Module> collection()
      • iterator

        public Iterator<com.google.inject.Module> iterator()
        Specified by:
        iterator in interface Iterable<com.google.inject.Module>