Package io.webdevice.wiring
Class DynamicDependsOn
- java.lang.Object
-
- io.webdevice.wiring.DynamicDependsOn
-
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor
@Order(2147483647) @Component("webdevice.DynamicDependsOn") public class DynamicDependsOn extends Object implements org.springframework.beans.factory.config.BeanFactoryPostProcessorThis class exists to establish dependencies that ensure proper lifecycle ordering between aWebDeviceinstance and all of theDeviceProviderinstances present in the context.DeviceProviderinstances are defined dynamically and not known at compile time, soDependsOncannot be used.In all cases, the
WebDevicemust be destroyed before all other components so that it will release it's acquiredDeviceto the originatingDeviceProvider. Then the providers can be destroyed.
-
-
Constructor Summary
Constructors Constructor Description DynamicDependsOn()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpostProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory)
-
-
-
Method Detail
-
postProcessBeanFactory
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory) throws org.springframework.beans.BeansException- Specified by:
postProcessBeanFactoryin interfaceorg.springframework.beans.factory.config.BeanFactoryPostProcessor- Throws:
org.springframework.beans.BeansException
-
-