类 MvcEndpoints
- java.lang.Object
- org.springframework.boot.actuate.endpoint.mvc.MvcEndpoints
- 所有已实现的接口:
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.
构造器概要
构造器 构造器 说明 MvcEndpoints()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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)
构造器详细资料
MvcEndpoints
public MvcEndpoints()
方法详细资料
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- 指定者:
setApplicationContext
在接口中org.springframework.context.ApplicationContextAware
- 抛出:
org.springframework.beans.BeansException
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- 指定者:
afterPropertiesSet
在接口中org.springframework.beans.factory.InitializingBean
- 抛出:
Exception
getEndpoints
public Set<MvcEndpoint> getEndpoints()
getEndpoints
public <E extends MvcEndpoint> Set<E> getEndpoints(Class<E> type)
Return the endpoints of the specified type.- 类型参数:
E
- the Class type of the endpoints to be returned- 参数:
type
- the endpoint type- 返回:
- the endpoints