Class EnvironmentEndpoint

java.lang.Object
io.micronaut.management.endpoint.env.EnvironmentEndpoint

@Endpoint(id="env", defaultEnabled=false) public class EnvironmentEndpoint extends Object
Endpoint that displays information about the environment and its property sources.
Since:
1.2.0
  • Field Details

  • Constructor Details

    • EnvironmentEndpoint

      public EnvironmentEndpoint(io.micronaut.context.env.Environment environment)
      Parameters:
      environment - The Environment
    • EnvironmentEndpoint

      @Inject public EnvironmentEndpoint(io.micronaut.context.env.Environment environment, @Nullable @Nullable EnvironmentEndpointFilter environmentFilter)
      Parameters:
      environment - The Environment
      environmentFilter - The registered EnvironmentEndpointFilter bean if one is registered
  • Method Details

    • getEnvironmentInfo

      @Read public Map<String,Object> getEnvironmentInfo()
      Returns:
      The environment information as a map with the following keys: activeEnvironments, packages and propertySources.
    • getProperties

      @Read public Map<String,Object> getProperties(@Selector String propertySourceName)
      Parameters:
      propertySourceName - The PropertySource name
      Returns:
      a map with all the properties defined in the property source if it exists; null otherwise.