public interface Environment
Modifier and Type | Interface and Description |
---|---|
static interface |
Environment.RoutingEngine |
Modifier and Type | Method and Description |
---|---|
Client |
client()
Get an Apollo client for communicating with a backend service.
|
com.google.common.io.Closer |
closer()
Returns a
Closer which can be used to register resources that need to be closed on
application shutdown. |
com.typesafe.config.Config |
config()
Returns configuration loaded by the framework on an application behalf.
|
String |
domain()
The domain that the application is running in.
|
<T> T |
resolve(Class<T> clazz)
Resolves an instance of a class out of the underlying apollo-core module system.
|
Environment.RoutingEngine |
routingEngine()
Returns the
Environment.RoutingEngine of this application. |
String domain()
Client client()
RequestContext.requestScopedClient()
for Apollo to be able to connect outgoing requests with incoming ones, and
to set the auth context of outgoing requests based on the incoming one.Client
.com.typesafe.config.Config config()
Environment.RoutingEngine routingEngine()
Environment.RoutingEngine
of this application.Environment.RoutingEngine
instance of this applicationcom.google.common.io.Closer closer()
Closer
which can be used to register resources that need to be closed on
application shutdown.Closer
of this application<T> T resolve(Class<T> clazz)
T
- The type of the resoved instanceclazz
- The class to resolveCopyright © 2016. All rights reserved.