Package com.yahoo.jdisc.application
Class GuiceRepository
java.lang.Object
com.yahoo.jdisc.application.GuiceRepository
- All Implemented Interfaces:
Iterable<com.google.inject.Module>
This is a repository of
Module
s. 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 Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.inject.Injector
activate()
Collection<com.google.inject.Module>
com.google.inject.Injector
<T> T
getInstance
(com.google.inject.Key<T> key) <T> T
getInstance
(Class<T> type) final void
install
(com.google.inject.Module module) com.google.inject.Module
final void
installAll
(Iterable<? extends com.google.inject.Module> modules) List<com.google.inject.Module>
installAll
(org.osgi.framework.Bundle bundle, Iterable<String> moduleNames) Iterator<com.google.inject.Module>
iterator()
void
uninstall
(com.google.inject.Module module) void
uninstallAll
(Iterable<? extends com.google.inject.Module> modules) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
GuiceRepository
public GuiceRepository(com.google.inject.Module... modules)
-
-
Method Details
-
activate
public com.google.inject.Injector activate() -
installAll
public List<com.google.inject.Module> installAll(org.osgi.framework.Bundle bundle, Iterable<String> moduleNames) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
install
public com.google.inject.Module install(org.osgi.framework.Bundle bundle, String moduleName) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
installAll
-
install
public final void install(com.google.inject.Module module) -
uninstallAll
-
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
-
collection
-
iterator
-