Package net.officefloor.spring.data
Class SpringDataExtension
- java.lang.Object
-
- net.officefloor.spring.data.SpringDataExtension
-
- All Implemented Interfaces:
ServiceFactory<SpringSupplierExtension>
,SpringSupplierExtension
,SpringSupplierExtensionServiceFactory
public class SpringDataExtension extends java.lang.Object implements SpringSupplierExtensionServiceFactory, SpringSupplierExtension
Spring dataSpringSupplierExtension
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description SpringDataExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterSpringLoad(AfterSpringLoadSupplierExtensionContext context)
Invoked after Spring is loaded.SpringSupplierExtension
createService(ServiceContext context)
Creates the service.void
decorateSpringBean(SpringBeanDecoratorContext context)
Invoked for each registered Spring bean to further decorate integration.-
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
beforeSpringLoad, configureSpring
-
-
-
-
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.
-
afterSpringLoad
public void afterSpringLoad(AfterSpringLoadSupplierExtensionContext context) throws java.lang.Exception
Description copied from interface:SpringSupplierExtension
Invoked after Spring is loaded.
Allows processing captured information.
- Specified by:
afterSpringLoad
in interfaceSpringSupplierExtension
- Parameters:
context
-AfterSpringLoadSupplierExtensionContext
.- Throws:
java.lang.Exception
- If fails to complete extension configuration.
-
decorateSpringBean
public void decorateSpringBean(SpringBeanDecoratorContext context) throws java.lang.Exception
Description copied from interface:SpringSupplierExtension
Invoked for each registered Spring bean to further decorate integration.- Specified by:
decorateSpringBean
in interfaceSpringSupplierExtension
- Parameters:
context
-SpringBeanDecoratorContext
.- Throws:
java.lang.Exception
- If fails to decorate the Spring Bean.
-
-