public class GuiceRegistry
extends java.lang.Object
GuiceBuilder to acquire a GuiceSetup which defines the Guice Modules to use to build this
environment.| Constructor and Description |
|---|
GuiceRegistry() |
GuiceRegistry(GuiceBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
GuiceBuilder |
getBuilder() |
com.google.inject.Injector |
getInjector() |
void |
register(GuiceApplication service,
boolean durable)
Request that an application be registered with this GuiceRegistry
|
void |
restart()
Restart Guice services
|
void |
stop()
Shutdown all services
|
public GuiceRegistry()
public GuiceRegistry(GuiceBuilder builder)
public GuiceBuilder getBuilder()
public 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 com.google.inject.Injector getInjector()
public void stop()
public void restart()
Copyright © 2014. All Rights Reserved.