Package net.officefloor.spring.jaxrs
Class JaxRsSpringSupplierExtension
- java.lang.Object
-
- net.officefloor.spring.jaxrs.JaxRsSpringSupplierExtension
-
- All Implemented Interfaces:
ServiceFactory<SpringSupplierExtension>
,SpringSupplierExtension
,SpringSupplierExtensionServiceFactory
public class JaxRsSpringSupplierExtension extends java.lang.Object implements SpringSupplierExtension, SpringSupplierExtensionServiceFactory
JAX-RSSpringSupplierExtension
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description JaxRsSpringSupplierExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configureSpring(org.springframework.boot.builder.SpringApplicationBuilder builder)
Configures Spring viaSpringApplicationBuilder
.SpringSupplierExtension
createService(ServiceContext context)
Creates the service.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.spring.extension.SpringSupplierExtension
afterSpringLoad, beforeSpringLoad, decorateSpringBean
-
-
-
-
Method Detail
-
createService
public SpringSupplierExtension createService(ServiceContext context) throws java.lang.Throwable
Description copied from interface:ServiceFactory
Creates the service.- Specified by:
createService
in interfaceServiceFactory<SpringSupplierExtension>
- Parameters:
context
-ServiceContext
.- Returns:
- Service.
- Throws:
java.lang.Throwable
- If fails to create the service.
-
configureSpring
public void configureSpring(org.springframework.boot.builder.SpringApplicationBuilder builder) throws java.lang.Exception
Description copied from interface:SpringSupplierExtension
Configures Spring viaSpringApplicationBuilder
.- Specified by:
configureSpring
in interfaceSpringSupplierExtension
- Parameters:
builder
-SpringApplicationBuilder
.- Throws:
java.lang.Exception
- If fails to configure.
-
-