Class MvcEndpoints
- java.lang.Object
- org.springframework.boot.actuate.endpoint.mvc.MvcEndpoints
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
public class MvcEndpoints extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
A registry for allMvcEndpoint
beans, and a factory for a set of generic ones wrapping existingEndpoint
instances that are not already exposed as MVC endpoints.
Constructor Summary
Constructors Constructor Description MvcEndpoints()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
Set<MvcEndpoint>
getEndpoints()
<E extends MvcEndpoint>
Set<E>getEndpoints(Class<E> type)
Return the endpoints of the specified type.void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Constructor Detail
MvcEndpoints
public MvcEndpoints()
Method Detail
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
getEndpoints
public Set<MvcEndpoint> getEndpoints()
getEndpoints
public <E extends MvcEndpoint> Set<E> getEndpoints(Class<E> type)
Return the endpoints of the specified type.- Type Parameters:
E
- the Class type of the endpoints to be returned- Parameters:
type
- the endpoint type- Returns:
- the endpoints