Class EnvironmentEndpoint
java.lang.Object
io.micronaut.management.endpoint.env.EnvironmentEndpoint
Endpoint
that displays information about the environment and its property sources.- Since:
- 1.2.0
- Author:
- Álvaro Sánchez-Mariscal
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEnvironmentEndpoint
(Environment environment) EnvironmentEndpoint
(Environment environment, @Nullable EnvironmentEndpointFilter environmentFilter) -
Method Summary
-
Field Details
-
NAME
Endpoint name.- See Also:
-
-
Constructor Details
-
EnvironmentEndpoint
- Parameters:
environment
- TheEnvironment
-
EnvironmentEndpoint
@Inject public EnvironmentEndpoint(Environment environment, @Nullable @Nullable EnvironmentEndpointFilter environmentFilter) - Parameters:
environment
- TheEnvironment
environmentFilter
- The registeredEnvironmentEndpointFilter
bean if one is registered
-
-
Method Details
-
getEnvironmentInfo
- Returns:
- The environment information as a map with the following keys: activeEnvironments, packages and propertySources.
-
getProperties
- Parameters:
propertySourceName
- ThePropertySource
name- Returns:
- a map with all the properties defined in the property source if it exists; null otherwise.
-