Class OfficeFloorRestAutoConfiguration
java.lang.Object
net.officefloor.spring.starter.rest.OfficeFloorRestAutoConfiguration
@AutoConfiguration
@EnableConfigurationProperties(OfficeFloorRestProperties.class)
@ConditionalOnProperty(prefix="officefloor.rest",
name="enabled",
havingValue="true",
matchIfMissing=true)
public class OfficeFloorRestAutoConfiguration
extends Object
Auto-configuration for OfficeFloor REST integration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOfficeFloorRestSpringBootStarter(OfficeFloorRestProperties properties, org.springframework.context.ConfigurableApplicationContext applicationContext, com.fasterxml.jackson.databind.ObjectMapper mapper) Provides theOfficeFloorRestSpringBootStarterbean.officeFloorWebMvcConfigurer(OfficeFloorRestSpringBootStarter starter, org.springframework.beans.factory.ObjectProvider<org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter> handlerAdapterProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.web.servlet.DispatcherServlet> dispatcherServletProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.context.ApplicationContext> applicationContextProvider) Provides theOfficeFloorWebMvcConfigurerbean.
-
Constructor Details
-
OfficeFloorRestAutoConfiguration
public OfficeFloorRestAutoConfiguration()
-
-
Method Details
-
getOfficeFloorRestSpringBootStarter
@Bean @ConditionalOnMissingBean public OfficeFloorRestSpringBootStarter getOfficeFloorRestSpringBootStarter(OfficeFloorRestProperties properties, org.springframework.context.ConfigurableApplicationContext applicationContext, com.fasterxml.jackson.databind.ObjectMapper mapper) Provides theOfficeFloorRestSpringBootStarterbean.- Parameters:
properties-OfficeFloorRestProperties.applicationContext-ConfigurableApplicationContext.mapper-ObjectMapper.- Returns:
OfficeFloorRestSpringBootStarter.
-
officeFloorWebMvcConfigurer
@Bean public OfficeFloorWebMvcConfigurer officeFloorWebMvcConfigurer(OfficeFloorRestSpringBootStarter starter, org.springframework.beans.factory.ObjectProvider<org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter> handlerAdapterProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.web.servlet.DispatcherServlet> dispatcherServletProvider, org.springframework.beans.factory.ObjectProvider<org.springframework.context.ApplicationContext> applicationContextProvider) throws Exception Provides theOfficeFloorWebMvcConfigurerbean.- Parameters:
starter-OfficeFloorRestSpringBootStarter.handlerAdapterProvider-ObjectProviderforRequestMappingHandlerAdapter.dispatcherServletProvider-ObjectProviderforDispatcherServlet.applicationContextProvider-ObjectProviderforApplicationContext.- Returns:
OfficeFloorWebMvcConfigurer.- Throws:
Exception- If fails to create the configurer.
-