Class EnvironmentMvcEndpoint
- java.lang.Object
- org.springframework.boot.actuate.endpoint.mvc.AbstractEndpointMvcAdapter<Endpoint<?>>
- org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter
- org.springframework.boot.actuate.endpoint.mvc.EnvironmentMvcEndpoint
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,MvcEndpoint
,NamedMvcEndpoint
,org.springframework.context.EnvironmentAware
@ConfigurationProperties(prefix="endpoints.env") public class EnvironmentMvcEndpoint extends EndpointMvcAdapter implements org.springframework.context.EnvironmentAware
Adapter to exposeEnvironmentEndpoint
as anMvcEndpoint
.
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EnvironmentMvcEndpoint.NoSuchPropertyException
Exception thrown when the specified property cannot be found.
Field Summary
Fields inherited from interface org.springframework.boot.actuate.endpoint.mvc.MvcEndpoint
DISABLED_RESPONSE
Constructor Summary
Constructors Constructor Description EnvironmentMvcEndpoint(EnvironmentEndpoint delegate)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setEnvironment(org.springframework.core.env.Environment environment)
Object
value(String name)
Methods inherited from class org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter
invoke
Methods inherited from class org.springframework.boot.actuate.endpoint.mvc.AbstractEndpointMvcAdapter
getDelegate, getDisabledResponse, getEndpointType, getName, getPath, isSensitive, setPath
Constructor Detail
EnvironmentMvcEndpoint
public EnvironmentMvcEndpoint(EnvironmentEndpoint delegate)
Method Detail
value
@ActuatorGetMapping("/{name:.*}") @ResponseBody @HypermediaDisabled public Object value(@PathVariable String name)
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment)
- Specified by:
setEnvironment
in interfaceorg.springframework.context.EnvironmentAware