Class BeansEndpoint
- java.lang.Object
- org.springframework.boot.actuate.endpoint.AbstractEndpoint<List<Object>>
- org.springframework.boot.actuate.endpoint.BeansEndpoint
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,Endpoint<List<Object>>
,org.springframework.context.ApplicationContextAware
,org.springframework.context.EnvironmentAware
@ConfigurationProperties(prefix="endpoints.beans") public class BeansEndpoint extends AbstractEndpoint<List<Object>> implements org.springframework.context.ApplicationContextAware
Exposes JSON view of Spring beans. If theEnvironment
contains a key setting theLiveBeansView.MBEAN_DOMAIN_PROPERTY_NAME
then all application contexts in the JVM will be shown (and the corresponding MBeans will be registered per the standard behavior of LiveBeansView). Otherwise only the current application context hierarchy.
Constructor Summary
Constructors Constructor Description BeansEndpoint()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Object>
invoke()
Called to invoke the endpoint.void
setApplicationContext(org.springframework.context.ApplicationContext context)
Methods inherited from class org.springframework.boot.actuate.endpoint.AbstractEndpoint
getEnvironment, getId, isEnabled, isSensitive, setEnabled, setEnvironment, setId, setSensitive
Constructor Detail
BeansEndpoint
public BeansEndpoint()
Method Detail
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext context) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException