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 voidconfigureSpring(org.springframework.boot.builder.SpringApplicationBuilder builder)Configures Spring viaSpringApplicationBuilder.SpringSupplierExtensioncreateService(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:ServiceFactoryCreates the service.- Specified by:
createServicein 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.ExceptionDescription copied from interface:SpringSupplierExtensionConfigures Spring viaSpringApplicationBuilder.- Specified by:
configureSpringin interfaceSpringSupplierExtension- Parameters:
builder-SpringApplicationBuilder.- Throws:
java.lang.Exception- If fails to configure.
-
-