public class ApolloEnvironmentModule extends AbstractApolloModule
Environment
, Environment.RoutingEngine
and a managed Client
.
This module can be used to construct a RequestHandler
from an AppInit
that can
be used with server modules.Constructor and Description |
---|
ApolloEnvironmentModule() |
Modifier and Type | Method and Description |
---|---|
protected void |
configure() |
static ApolloEnvironmentModule |
create() |
static ApolloEnvironment |
environment(Service.Instance instance)
Gets the
ApolloEnvironment that can be used to initialize applications. |
String |
getId()
Returns the id for this module.
|
getLifecycleManaged, getPriority, manageLifecycle, manageLifecycle, toString
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
public static ApolloEnvironmentModule create()
public static ApolloEnvironment environment(Service.Instance instance)
ApolloEnvironment
that can be used to initialize applications.instance
- The Service instance that is being set upprotected void configure()
configure
in class com.google.inject.AbstractModule
public String getId()
ApolloModule
Copyright © 2016. All rights reserved.