Class 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 all MvcEndpoint beans, and a factory for a set of generic ones wrapping existing Endpoint instances that are not already exposed as MVC endpoints.
    • Method Detail

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • getEndpoints

        public <E extends MvcEndpointSet<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