Package org.restlet.ext.guice
Class RestletGuice
- java.lang.Object
-
- org.restlet.ext.guice.RestletGuice
-
public class RestletGuice extends java.lang.ObjectGuice dependency injection for Restlet.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRestletGuice.ModuleA Guice module that implementsFinderFactory.
-
Constructor Summary
Constructors Constructor Description RestletGuice()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.inject.InjectorcreateInjector(com.google.inject.Module... modules)Creates an instance ofInjectorfrom the given modules withFinderFactorybound to an implementation that uses the injector's bindings to create Finder instances.static com.google.inject.InjectorcreateInjector(com.google.inject.Stage stage, com.google.inject.Module... modules)Creates an instance ofInjectorin the givenStagefrom the given modules withFinderFactorybound to an implementation that uses the injector's bindings to createFinderinstances.static com.google.inject.InjectorcreateInjector(com.google.inject.Stage stage, java.lang.Iterable<com.google.inject.Module> modules)Creates an instance ofInjectorin the givenStagefrom the given modules withFinderFactorybound to an implementation that uses the injector's bindings to createFinderinstances.static com.google.inject.InjectorcreateInjector(java.lang.Iterable<com.google.inject.Module> modules)Creates an instance ofInjectorfrom the given modules withFinderFactorybound to an implementation that uses the injector's bindings to create Finder instances.private static com.google.inject.InjectorinjectorFor(com.google.inject.Stage stage, RestletGuice.Module rootModule)
-
-
-
Method Detail
-
createInjector
public static com.google.inject.Injector createInjector(com.google.inject.Module... modules)
Creates an instance ofInjectorfrom the given modules withFinderFactorybound 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 ofInjectorfrom the given modules withFinderFactorybound 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 ofInjectorin the givenStagefrom the given modules withFinderFactorybound to an implementation that uses the injector's bindings to createFinderinstances.- Parameters:
stage- TheStage.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 ofInjectorin the givenStagefrom the given modules withFinderFactorybound to an implementation that uses the injector's bindings to createFinderinstances.- Parameters:
stage- TheStage.modules- The list of modules.- Returns:
- The injector for the list of modules in the given stage.
-
injectorFor
private static com.google.inject.Injector injectorFor(com.google.inject.Stage stage, RestletGuice.Module rootModule)
-
-