public class GuiceRegistry
extends java.lang.Object
GuiceInjectorBootstrap to acquire a GuiceSetup which defines the Guice Modules to use to build this
environment.| Constructor and Description |
|---|
GuiceRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.inject.Injector |
getInjector() |
static void |
register(GuiceApplication service,
boolean durable)
Request that an application be registered with this GuiceRegistry
|
static void |
restart()
Restart Guice services
|
static void |
stop()
Shutdown all services
|
public static void register(GuiceApplication service, boolean durable)
service - the service to register (must not be null)durable - true if the application registration should be durable (durable applications receive lifecycle updates and are
reconfigured should restart() be calledpublic static com.google.inject.Injector getInjector()
public static void stop()
public static void restart()
Copyright © 2014. All Rights Reserved.