Class OfficeFloorRestSpringBootStarter
java.lang.Object
net.officefloor.spring.starter.rest.OfficeFloorRestSpringBootStarter
Handles starting
OfficeFloor.-
Constructor Summary
ConstructorsConstructorDescriptionOfficeFloorRestSpringBootStarter(OfficeFloorRestProperties properties, org.springframework.context.ConfigurableApplicationContext applicationContext, com.fasterxml.jackson.databind.ObjectMapper mapper) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Destroys theOfficeFlooron shutdown.Obtains theHttpServletOfficeFloorBridge.io.swagger.v3.oas.models.OpenAPIObtains theOpenAPI.Obtains theOfficeFloorRestEndpointinstances.voidEnsuresOfficeFlooris started.
-
Constructor Details
-
OfficeFloorRestSpringBootStarter
public OfficeFloorRestSpringBootStarter(OfficeFloorRestProperties properties, org.springframework.context.ConfigurableApplicationContext applicationContext, com.fasterxml.jackson.databind.ObjectMapper mapper) Instantiate.- Parameters:
properties-OfficeFloorRestProperties.applicationContext-ConfigurableApplicationContext.mapper-ObjectMapper.
-
-
Method Details
-
destroy
Destroys theOfficeFlooron shutdown.- Throws:
Exception- If fails to close.
-
startOfficeFloor
EnsuresOfficeFlooris started.- Throws:
Exception- If fails to start theOfficeFloor.
-
getBridge
Obtains theHttpServletOfficeFloorBridge.- Returns:
HttpServletOfficeFloorBridge.
-
getRestEndpoints
Obtains theOfficeFloorRestEndpointinstances.- Returns:
OfficeFloorRestEndpointinstances.
-
getOpenApi
public io.swagger.v3.oas.models.OpenAPI getOpenApi()Obtains theOpenAPI.- Returns:
OpenAPI.
-